ntlm-test: kill some dead code
authorDan Winship <danw@gnome.org>
Wed, 2 Jan 2013 02:30:05 +0000 (21:30 -0500)
committerDan Winship <danw@gnome.org>
Wed, 2 Jan 2013 20:34:12 +0000 (15:34 -0500)
tests/ntlm-test.c

index e2dc23a..3184ffc 100644 (file)
@@ -458,7 +458,6 @@ do_ntlm_tests (SoupURI *base_uri, gboolean use_builtin_ntlm)
 int
 main (int argc, char **argv)
 {
-       GMainLoop *loop;
        SoupServer *server;
        GHashTable *connections;
        SoupURI *uri;
@@ -470,8 +469,6 @@ main (int argc, char **argv)
        soup_server_add_handler (server, NULL,
                                 server_callback, connections, NULL);
 
-       loop = g_main_loop_new (NULL, TRUE);
-
        uri = soup_uri_new ("http://127.0.0.1/");
        soup_uri_set_port (uri, soup_server_get_port (server));
 
@@ -500,8 +497,6 @@ main (int argc, char **argv)
 
        soup_uri_free (uri);
 
-       g_main_loop_unref (loop);
-
        soup_test_server_quit_unref (server);
        test_cleanup ();
        g_hash_table_destroy (connections);