X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=callback.c;h=c70dc53fb85fb06d5de6b77ac872833dbee8a22a;hb=991d30412d0911e7727a852d0a00ae0f1bec1b3e;hp=c850f6bca31246ab590f24498a9d6445e53c8be0;hpb=5c4ce2fadf23bff6f38155df44b5d6040cf80d26;p=PuTTY.git diff --git a/callback.c b/callback.c index c850f6bc..c70dc53f 100644 --- a/callback.c +++ b/callback.c @@ -26,28 +26,10 @@ void request_callback_notifications(toplevel_callback_notify_fn_t fn, frontend = fr; } -void stoat_callback(void *ctx) -{ - static int stoat = 0; - if (++stoat % 1000 == 0) - debug(("stoat %d\n", stoat)); - queue_toplevel_callback(stoat_callback, NULL); -} -void queue_stoat(void) -{ - static int stoat = 0; - if (!stoat) { - stoat = 1; - queue_toplevel_callback(stoat_callback, NULL); - } -} - void queue_toplevel_callback(toplevel_callback_fn_t fn, void *ctx) { struct callback *cb; - queue_stoat(); - cb = snew(struct callback); cb->fn = fn; cb->ctx = ctx; @@ -68,7 +50,6 @@ void queue_toplevel_callback(toplevel_callback_fn_t fn, void *ctx) void run_toplevel_callbacks(void) { - queue_stoat(); if (cbhead) { struct callback *cb = cbhead; /* @@ -89,6 +70,5 @@ void run_toplevel_callbacks(void) int toplevel_callback_pending(void) { - queue_stoat(); return cbhead != NULL; }