Code cleanup, removed debug messages

This commit is contained in:
Stefan Persson 2012-12-06 16:12:42 +01:00
parent 6796129cb5
commit 475fdb9d59
6 changed files with 5 additions and 32 deletions

View file

@ -7,13 +7,13 @@
#define _CRT_RAND_S
#include "service/Controller.h"
#include <stdlib.h>
#include <time.h>
#include <map>
#include <list>
#include <string>
#include "service/Protocol.h"
#include "service/EventUpdateManager.h"
#include "common/Strings.h"
#include "common/common.h" // debug
inline int random( unsigned int* seed ) {
#ifdef _WINDOWS

View file

@ -24,7 +24,6 @@
#include <vector>
#endif // _LINUX
#include "common/common.h" // debug
#include "common/EventHandler.h"
#include "common/Message.h"
#include "common/Socket.h"
@ -165,7 +164,6 @@ void EventUpdateManager::sendMessageToClients(EventUpdateData *data) {
it++;
} else {
// connection is dead, remove it
debuglogservice(0, "Lost connection, removing it");
delete *it;
it = d->clients.erase(it);
}

View file

@ -9,7 +9,6 @@
#include <list>
#include <memory>
#include "common/common.h" // debug
#include "common/EventHandler.h"
#include "service/ClientCommunicationHandler.h"
#include "service/ConnectionListener.h"
@ -63,7 +62,6 @@ void TelldusMain::suspend() {
}
void TelldusMain::start(void) {
debuglogservice(0, "Starting service");
TelldusCore::EventRef clientEvent = d->eventHandler.addEvent();
TelldusCore::EventRef dataEvent = d->eventHandler.addEvent();
TelldusCore::EventRef executeActionEvent = d->eventHandler.addEvent();