Commit 6b0502d1 authored by Ian Craggs's avatar Ian Craggs

Remove unused functions to fix compile warnings

parent fca13278
......@@ -74,7 +74,7 @@ static const char *errmsg = "Memory allocation error";
static size_t Heap_roundup(size_t size);
static int ptrCompare(void* a, void* b, int value);
static void Heap_check(char* string, void* ptr);
/*static void Heap_check(char* string, void* ptr);*/
static void checkEyecatchers(char* file, int line, void* p, size_t size);
static int Internal_heap_unlink(char* file, int line, void* p);
static void HeapScan(enum LOG_LEVELS log_level);
......@@ -112,11 +112,10 @@ static int ptrCompare(void* a, void* b, int value)
return (a > b) ? -1 : (a == b) ? 0 : 1;
}
/*
static void Heap_check(char* string, void* ptr)
{
return;
/*Node* curnode = NULL;
Node* curnode = NULL;
storageElement* prev, *s = NULL;
printf("Heap_check start %p\n", ptr);
......@@ -135,8 +134,8 @@ static void Heap_check(char* string, void* ptr)
else
printf("%s: heap order good %d %p %p\n", string, ptrCompare(s, prev, 1), prev->ptr, s->ptr);
}
}*/
}
}
}*/
/**
......
......@@ -345,7 +345,7 @@ static void MQTTAsync_terminate(void);
static int MQTTAsync_unpersistCommand(MQTTAsync_queuedCommand* qcmd);
static int MQTTAsync_persistCommand(MQTTAsync_queuedCommand* qcmd);
static MQTTAsync_queuedCommand* MQTTAsync_restoreCommand(char* buffer, int buflen);
static void MQTTAsync_insertInOrder(List* list, void* content, int size);
/*static void MQTTAsync_insertInOrder(List* list, void* content, int size);*/
static int MQTTAsync_restoreCommands(MQTTAsyncs* client);
#endif
static int MQTTAsync_addCommand(MQTTAsync_queuedCommand* command, int command_size);
......@@ -377,7 +377,7 @@ static int MQTTAsync_countBufferedMessages(MQTTAsyncs* m);
static void MQTTAsync_retry(void);
static int MQTTAsync_connecting(MQTTAsyncs* m);
static MQTTPacket* MQTTAsync_cycle(int* sock, unsigned long timeout, int* rc);
static int pubCompare(void* a, void* b);
/*static int pubCompare(void* a, void* b);*/
void MQTTAsync_sleep(long milliseconds)
......@@ -771,7 +771,7 @@ static MQTTAsync_queuedCommand* MQTTAsync_restoreCommand(char* buffer, int bufle
return qcommand;
}
/*
static void MQTTAsync_insertInOrder(List* list, void* content, int size)
{
ListElement* index = NULL;
......@@ -786,7 +786,7 @@ static void MQTTAsync_insertInOrder(List* list, void* content, int size)
ListInsert(list, content, size, index);
FUNC_EXIT;
}
}*/
static int MQTTAsync_restoreCommands(MQTTAsyncs* client)
......@@ -2996,12 +2996,12 @@ static MQTTPacket* MQTTAsync_cycle(int* sock, unsigned long timeout, int* rc)
return pack;
}
/*
static int pubCompare(void* a, void* b)
{
Messages* msg = (Messages*)a;
return msg->publish == (Publications*)b;
}
}*/
int MQTTAsync_getPendingTokens(MQTTAsync handle, MQTTAsync_token **tokens)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment