removed unused variable

This commit is contained in:
john30
2014-10-29 22:39:35 +01:00
parent 9fe524a1b4
commit ae15b0e631
+1 -5
View File
@@ -70,7 +70,6 @@ void* EBusLoop::run()
time_t pollStart, pollEnd; time_t pollStart, pollEnd;
time(&pollStart); time(&pollStart);
double pollDelta = 0.0; double pollDelta = 0.0;
bool pollCommandActive = false;
for (;;) { for (;;) {
if (m_bus->isConnected() == true) { if (m_bus->isConnected() == true) {
@@ -115,7 +114,7 @@ void* EBusLoop::run()
// add new bus command to send // add new bus command to send
if (busResult == RESULT_SYN && busCommandActive == false && m_sendBuffer.size() != 0) { if (busResult == RESULT_SYN && busCommandActive == false && m_sendBuffer.size() != 0) {
BusCommand* busCommand = m_sendBuffer.remove(); BusCommand* busCommand = m_sendBuffer.remove();
L.log(bus, debug, " msg: %s", busCommand->getCommand().getDataStr(true).c_str()); L.log(bus, debug, " msg: %s", busCommand->getCommand().getDataStr().c_str());
m_bus->addCommand(busCommand); m_bus->addCommand(busCommand);
L.log(bus, debug, " addCommand success"); L.log(bus, debug, " addCommand success");
busCommandActive = true; busCommandActive = true;
@@ -154,7 +153,6 @@ void* EBusLoop::run()
m_bus->addCommand(busCommand); m_bus->addCommand(busCommand);
L.log(bus, debug, " addCommand success"); L.log(bus, debug, " addCommand success");
busCommandActive = true; busCommandActive = true;
pollCommandActive = true;
time(&pollStart); time(&pollStart);
} }
@@ -181,7 +179,6 @@ void* EBusLoop::run()
m_commands->storePolData(busCommand->getMessageStr().c_str()); // TODO use getResult() m_commands->storePolData(busCommand->getMessageStr().c_str()); // TODO use getResult()
delete busCommand; delete busCommand;
pollCommandActive = false;
} else { } else {
busCommand->sendSignal(); busCommand->sendSignal();
} }
@@ -206,7 +203,6 @@ void* EBusLoop::run()
} }
lookbusretries = 0; lookbusretries = 0;
busCommandActive = false; busCommandActive = false;
pollCommandActive = false;
}else { }else {
lookbusretries++; lookbusretries++;
} }