summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-09-02 14:00:33 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2014-09-03 10:23:44 +0200
commit752c645fd480ed7d64575deca2c3919e1292d65d (patch)
tree191c77c70d70824ffa38d58b06aec93b2b7d9028
parentec8fffcc36f10be6f9df71694cc91796463a6219 (diff)
downloadlibrest-752c645fd480ed7d64575deca2c3919e1292d65d.tar.gz
tests: Remove unused 'session' variable
https://bugzilla.gnome.org/show_bug.cgi?id=735921
-rw-r--r--tests/custom-serialize.c3
-rw-r--r--tests/proxy-continuous.c3
-rw-r--r--tests/proxy.c3
-rw-r--r--tests/threaded.c3
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);