remove unused code

This commit is contained in:
technyon
2022-07-03 21:18:01 +02:00
parent 621dc14f77
commit c4ab84cd5c
2 changed files with 0 additions and 21 deletions

View File

@@ -83,11 +83,6 @@ void NetworkLock::onMqttDataReceived(char *&topic, byte *&payload, unsigned int
}
}
}
if(_mqttTopicReceivedForwardCallback != nullptr)
{
_mqttTopicReceivedForwardCallback(topic, payload, length);
}
}
void NetworkLock::publishKeyTurnerState(const NukiLock::KeyTurnerState& keyTurnerState, const NukiLock::KeyTurnerState& lastKeyTurnerState)
@@ -179,11 +174,6 @@ void NetworkLock::setConfigUpdateReceivedCallback(void (*configUpdateReceivedCal
_configUpdateReceivedCallback = configUpdateReceivedCallback;
}
void NetworkLock::setMqttDataReceivedForwardCallback(void (*callback)(char *, uint8_t *, unsigned int))
{
_mqttTopicReceivedForwardCallback = callback;
}
void NetworkLock::buildMqttPath(const char* path, char* outPath)
{
int offset = 0;
@@ -206,12 +196,6 @@ void NetworkLock::buildMqttPath(const char* path, char* outPath)
outPath[i+1] = 0x00;
}
void NetworkLock::restartAndConfigureWifi()
{
_network->reconfigureDevice();
}
bool NetworkLock::comparePrefixedPath(const char *fullPath, const char *subPath)
{
char prefixedPath[500];

View File

@@ -30,13 +30,9 @@ public:
void setLockActionReceivedCallback(bool (*lockActionReceivedCallback)(const char* value));
void setConfigUpdateReceivedCallback(void (*configUpdateReceivedCallback)(const char* path, const char* value));
void setMqttDataReceivedForwardCallback(void (*callback)(char*, uint8_t*, unsigned int));
void restartAndConfigureWifi();
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length) override;
private:
void publishFloat(const char* topic, const float value, const uint8_t precision = 2);
void publishInt(const char* topic, const int value);
@@ -57,5 +53,4 @@ private:
bool (*_lockActionReceivedCallback)(const char* value) = nullptr;
void (*_configUpdateReceivedCallback)(const char* path, const char* value) = nullptr;
void (*_mqttTopicReceivedForwardCallback)(char*, uint8_t*, unsigned int) = nullptr;
};