aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/proxy.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-11-15 14:35:24 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-11-15 14:35:24 +0100
commitf56c4917aa26670c03ef9cf4ecdfe2f7fad92aed (patch)
treea2fc70cee9c464823577e425fa6cdbc2d836a766 /protocols/proxy.c
parentabe53d3c48a6552e136ddc8bc554764daf255a05 (diff)
parentb135438c4c6aeb5a7cd3403f0cf37e741d589cd3 (diff)
Merge new changes from pluginable and Wilmer
Diffstat (limited to 'protocols/proxy.c')
-rw-r--r--protocols/proxy.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/protocols/proxy.c b/protocols/proxy.c
index b5f86e89..6d450c92 100644
--- a/protocols/proxy.c
+++ b/protocols/proxy.c
@@ -96,65 +96,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
-
- count_io_event(source, "proxy");
-
if (condition & GAIM_READ_COND)
gaim_cond |= GAIM_INPUT_READ;
if (condition & GAIM_WRITE_COND)