diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 51 |
1 files changed, 0 insertions, 51 deletions
@@ -676,51 +676,6 @@ request_started_cb (SoupServer *server, G_CALLBACK (got_request_headers), ctx_table); } -static void -request_read_cb (SoupServer *server, - SoupMessage *msg, - SoupClientContext *client, - GHashTable *ctx_table) -{ - if (msg->method == SOUP_METHOD_PUT || - msg->method == SOUP_METHOD_POST) - goto PUT; - else if (msg->method == SOUP_METHOD_GET) - goto GET; - else - return; - -PUT: - { - /* Everything is handled in the "finished" signal. Nothing to do. */ - } - -GET: - { - /* Nothing to do */ - } - - g_debug ("%s request read successfully", msg->method); -} - -static void -request_finished_cb (SoupServer *server, - SoupMessage *msg, - SoupClientContext *client, - GHashTable *ctx_table) -{ - g_debug ("%s request ended", msg->method); -} - -static void -request_aborted_cb (SoupServer *server, - SoupMessage *msg, - SoupClientContext *client, - GHashTable *ctx_table) -{ - /* Nothing to do. Everything is handled in "finished" signals. */ -} - gboolean exit_on_signal_cb (SoupServer *server) { @@ -761,12 +716,6 @@ main (int argc, ctx_table, NULL); g_signal_connect (server, "request-started", G_CALLBACK (request_started_cb), ctx_table); - g_signal_connect (server, "request-read", - G_CALLBACK (request_read_cb), ctx_table); - g_signal_connect (server, "request-finished", - G_CALLBACK (request_finished_cb), ctx_table); - g_signal_connect (server, "request-aborted", - G_CALLBACK (request_aborted_cb), ctx_table); g_unix_signal_add (SIGINT, (GSourceFunc)exit_on_signal_cb, server); soup_server_run (server); |