summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-23 21:55:02 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-23 21:55:04 (GMT)
commit42440099f201f4d438c1dd2918c77bc8e95814bd (patch)
tree2dea2775d6a7b7ce8cb55e7a5ebc3951b484c1d0
parentd6044621bfa82debbb70f3609d08b69badac36c2 (diff)
downloadsoup-transcoding-proxy-42440099f201f4d438c1dd2918c77bc8e95814bd.zip
soup-transcoding-proxy-42440099f201f4d438c1dd2918c77bc8e95814bd.tar.gz
server: Remove unused handlers
We're sure that we won't need them now, and it's making the code harder to follow
-rw-r--r--src/main.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/main.c b/src/main.c
index fb62d53..63c3a13 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);