Remove unused functions and add some comments

This commit is contained in:
mjentsch 2014-12-26 19:19:29 +01:00
parent d08e54d3e0
commit e3caa6acdb
3 changed files with 7 additions and 11 deletions

View file

@ -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];

View file

@ -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, ...);

View file

@ -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;