aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/proxy.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-11-09 02:02:05 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-11-09 02:02:05 +0100
commit21d09ac864315f80ff42f5b403a22dd833d0dbbc (patch)
treed6ef352a0ab6ccb89909e1727da0bf6b0819ac33 /protocols/proxy.c
parent68b50b5f367de68ca334bb83bf200a3406990410 (diff)
Forgot to modify CHANGES again, and removed some more debugging code we don't
need anymore (and didn't want to have in a release in the first place...)
Diffstat (limited to 'protocols/proxy.c')
-rw-r--r--protocols/proxy.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/protocols/proxy.c b/protocols/proxy.c
index cdfd8edf..59b480f4 100644
--- a/protocols/proxy.c
+++ b/protocols/proxy.c
@@ -106,63 +106,11 @@ static void gaim_io_destroy(gpointer data)
g_free(data);
}
-#ifdef PROXYPROFILER
-struct proxyprofiler
-{
- GaimInputFunction function;
- gpointer data;
-
- int count;
-
- struct proxyprofiler *next;
-} *pp = NULL;
-
-void proxyprofiler_dump()
-{
- struct proxyprofiler *l;
- char s[128];
- FILE *fp;
-
- sprintf( s, "proxyprofiler.%d", (int) getpid() );
- fp = fopen( s, "w" );
-
- fprintf( fp, "%-18s %-18s %10s\n", "Function", "Data", "Count" );
- for( l = pp; l; l = l->next )
- fprintf( fp, "0x%-16x 0x%-16x %10d\n", (int) l->function, (int) l->data, l->count );
-
- fclose( fp );
-}
-#endif
-
static gboolean gaim_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data)
{
GaimIOClosure *closure = data;
GaimInputCondition gaim_cond = 0;
-#ifdef PROXYPROFILER
- struct proxyprofiler *l;
-
- for( l = pp; l; l = l->next )
- {
- if( closure->function == l->function && closure->data == l->data )
- break;
- }
- if( l )
- {
- l->count ++;
- }
- else
- {
- l = g_new0( struct proxyprofiler, 1 );
- l->function = closure->function;
- l->data = closure->data;
- l->count = 1;
-
- l->next = pp;
- pp = l;
- }
-#endif
-
if (condition & GAIM_READ_COND)
gaim_cond |= GAIM_INPUT_READ;
if (condition & GAIM_WRITE_COND)