Remove unused functions and add some comments
This commit is contained in:
parent
d08e54d3e0
commit
e3caa6acdb
3 changed files with 7 additions and 11 deletions
12
msglog.c
12
msglog.c
|
@ -38,15 +38,9 @@
|
|||
#define COLOR_NORMAL ""
|
||||
#endif
|
||||
|
||||
void hexdump (int *in_ptr, int *in_end) {
|
||||
// TODO: figure out how to log hexdumps to purple log
|
||||
int *ptr = in_ptr;
|
||||
while (ptr < in_end) {
|
||||
++ ptr;
|
||||
//printf (" %08x", *(ptr ++));
|
||||
}
|
||||
//printf ("\n");
|
||||
}
|
||||
/*
|
||||
msglog.c: Convenience methods for logging to libpurple log
|
||||
*/
|
||||
|
||||
void log_level_printf (const char* format, va_list ap, int level, char *color) {
|
||||
char buffer[256];
|
||||
|
|
2
msglog.h
2
msglog.h
|
@ -19,8 +19,6 @@
|
|||
*/
|
||||
#include <stdarg.h>
|
||||
|
||||
void hexdump (int *in_ptr, int *in_end);
|
||||
|
||||
void debug(const char* format, ...);
|
||||
void info(const char* format, ...);
|
||||
void warning(const char* format, ...);
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
#include <msglog.h>
|
||||
#include <assert.h>
|
||||
|
||||
/*
|
||||
tgp-2prpl.c: Libpurple functions that can be called with tgl data types
|
||||
*/
|
||||
|
||||
static void sanitize_alias(char *buffer) {
|
||||
size_t len = strlen(buffer);
|
||||
gchar *curr;
|
||||
|
|
Loading…
Add table
Reference in a new issue