From 752c645fd480ed7d64575deca2c3919e1292d65d Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 2 Sep 2014 14:00:33 +0200 Subject: tests: Remove unused 'session' variable https://bugzilla.gnome.org/show_bug.cgi?id=735921 --- tests/custom-serialize.c | 3 --- tests/proxy-continuous.c | 3 --- tests/proxy.c | 3 --- tests/threaded.c | 3 --- 4 files changed, 12 deletions(-) diff --git a/tests/custom-serialize.c b/tests/custom-serialize.c index c5443b7..9d757fc 100644 --- a/tests/custom-serialize.c +++ b/tests/custom-serialize.c @@ -117,7 +117,6 @@ func (gpointer data) int main (int argc, char **argv) { - SoupSession *session; SoupServer *server; RestProxy *proxy; RestProxyCall *call; @@ -129,8 +128,6 @@ main (int argc, char **argv) g_type_init (); #endif - session = soup_session_sync_new (); - server = soup_server_new (NULL); soup_server_add_handler (server, NULL, server_callback, NULL, NULL); g_thread_create ((GThreadFunc)soup_server_run, server, FALSE, NULL); diff --git a/tests/proxy-continuous.c b/tests/proxy-continuous.c index a739fac..9395cd2 100644 --- a/tests/proxy-continuous.c +++ b/tests/proxy-continuous.c @@ -164,7 +164,6 @@ stream_test (RestProxy *proxy) int main (int argc, char **argv) { - SoupSession *session; char *url; RestProxy *proxy; @@ -173,8 +172,6 @@ main (int argc, char **argv) #endif loop = g_main_loop_new (NULL, FALSE); - session = soup_session_async_new (); - server = soup_server_new (NULL); soup_server_add_handler (server, NULL, server_callback, NULL, NULL); soup_server_run_async (server); diff --git a/tests/proxy.c b/tests/proxy.c index 74379e8..a1bed65 100644 --- a/tests/proxy.c +++ b/tests/proxy.c @@ -283,7 +283,6 @@ test_status_ok (RestProxy *proxy, const char *function) int main (int argc, char **argv) { - SoupSession *session; SoupServer *server; char *url; RestProxy *proxy; @@ -292,8 +291,6 @@ main (int argc, char **argv) g_type_init (); #endif - session = soup_session_async_new (); - server = soup_server_new (NULL); soup_server_add_handler (server, NULL, server_callback, NULL, NULL); soup_server_run_async (server); diff --git a/tests/threaded.c b/tests/threaded.c index 6283c9c..ecb074f 100644 --- a/tests/threaded.c +++ b/tests/threaded.c @@ -79,7 +79,6 @@ func (gpointer data) int main (int argc, char **argv) { - SoupSession *session; SoupServer *server; GThread *threads[10]; char *url; @@ -89,8 +88,6 @@ main (int argc, char **argv) g_type_init (); #endif - session = soup_session_sync_new (); - server = soup_server_new (NULL); soup_server_add_handler (server, NULL, server_callback, NULL, NULL); g_thread_create ((GThreadFunc)soup_server_run, server, FALSE, NULL); -- cgit v1.2.1