[phodav: 1/3] server: remove unused objects related to threading
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav: 1/3] server: remove unused objects related to threading
- Date: Thu, 9 Jul 2020 06:41:26 +0000 (UTC)
commit 167bbb7ae47dbe4c5f6fee340b0a836835f83b8c
Author: Jakub Janků <jjanku redhat com>
Date: Thu May 28 11:29:25 2020 +0200
server: remove unused objects related to threading
Threads are not used since 57ae68002f46670552444b11d0789f3dc041b432.
Signed-off-by: Jakub Janků <jjanku redhat com>
libphodav/phodav-server.c | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/libphodav/phodav-server.c b/libphodav/phodav-server.c
index 820984d..896d191 100644
--- a/libphodav/phodav-server.c
+++ b/libphodav/phodav-server.c
@@ -39,9 +39,6 @@
struct _PhodavServer
{
GObject parent;
- GMainContext *context;
- GMainLoop *loop;
- GThread *thread;
SoupServer *server;
GCancellable *cancellable;
gchar *root;
@@ -144,8 +141,6 @@ static void
phodav_server_init (PhodavServer *self)
{
self->cancellable = g_cancellable_new ();
- self->context = g_main_context_new ();
- self->loop = g_main_loop_new (self->context, FALSE);
self->paths = g_hash_table_new_full (g_str_hash, g_str_equal,
NULL, (GDestroyNotify) path_unref);
@@ -192,8 +187,6 @@ phodav_server_dispose (GObject *gobject)
PhodavServer *self = PHODAV_SERVER (gobject);
g_clear_pointer (&self->root, g_free);
- g_clear_pointer (&self->context, g_main_context_unref);
- g_clear_pointer (&self->thread, g_thread_unref);
g_clear_pointer (&self->paths, g_hash_table_unref);
/* Chain up to the parent class */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]