[librest] tests: Remove unused 'session' variable



commit 752c645fd480ed7d64575deca2c3919e1292d65d
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue Sep 2 14:00:33 2014 +0200

    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, 0 insertions(+), 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]