[gst-debugger] Remove unused API
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gst-debugger] Remove unused API
- Date: Tue, 10 Oct 2017 21:07:10 +0000 (UTC)
commit 04b178b4012620c89749e30a27e4573c02b278d8
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sun Oct 8 20:06:34 2017 +0100
Remove unused API
src/debugserver/gstdebugserverbuffer.c | 5 -----
src/debugserver/gstdebugserverbuffer.h | 2 --
src/debugserver/gstdebugserverhooks.c | 8 +-------
src/debugserver/gstdebugserverhooks.h | 2 --
src/debugserver/gstdebugserverlog.c | 6 ------
src/debugserver/gstdebugserverlog.h | 2 --
src/debugserver/gstdebugservermessage.c | 6 ------
src/debugserver/gstdebugservermessage.h | 2 --
src/debugserver/gstdebugserverqe.c | 6 ------
src/debugserver/gstdebugserverqe.h | 2 --
10 files changed, 1 insertions(+), 40 deletions(-)
---
diff --git a/src/debugserver/gstdebugserverbuffer.c b/src/debugserver/gstdebugserverbuffer.c
index eeee4b9..bb214b2 100644
--- a/src/debugserver/gstdebugserverbuffer.c
+++ b/src/debugserver/gstdebugserverbuffer.c
@@ -72,7 +72,6 @@ GstDebugserverBuffer * gst_debugserver_buffer_new (void)
void gst_debugserver_buffer_free (GstDebugserverBuffer * buf)
{
- gst_debugserver_buffer_clean (buf);
gst_debugserver_hooks_deinit (&buf->hooks);
g_free (buf);
}
@@ -156,7 +155,3 @@ void gst_debugserver_buffer_remove_client (GstDebugserverBuffer * buf, TcpClient
gst_debugserver_hooks_remove_client (&buf->hooks, client);
}
-void gst_debugserver_buffer_clean (GstDebugserverBuffer * buf)
-{
- gst_debugserver_hooks_clean (&buf->hooks);
-}
diff --git a/src/debugserver/gstdebugserverbuffer.h b/src/debugserver/gstdebugserverbuffer.h
index f864149..4852b0f 100644
--- a/src/debugserver/gstdebugserverbuffer.h
+++ b/src/debugserver/gstdebugserverbuffer.h
@@ -41,8 +41,6 @@ gboolean gst_debugserver_buffer_set_hook (GstDebugserverBuffer * buf, gboolean e
void gst_debugserver_buffer_send_buffer (GstDebugserverBuffer * buffer,
GstDebugserverTcp * tcp_server, GstPad * pad, GstBuffer * gst_buffer);
-void gst_debugserver_buffer_clean (GstDebugserverBuffer * buf);
-
void gst_debugserver_buffer_remove_client (GstDebugserverBuffer * buf,
TcpClient * client);
diff --git a/src/debugserver/gstdebugserverhooks.c b/src/debugserver/gstdebugserverhooks.c
index 86c2a25..b857f59 100644
--- a/src/debugserver/gstdebugserverhooks.c
+++ b/src/debugserver/gstdebugserverhooks.c
@@ -33,13 +33,7 @@ void gst_debugserver_hooks_deinit (GstDebugserverHooks * hooks)
g_mutex_lock (&hooks->mutex);
g_hash_table_destroy (hooks->clients);
g_mutex_unlock (&hooks->mutex);
-}
-
-void gst_debugserver_hooks_clean (GstDebugserverHooks * hooks)
-{
- g_mutex_lock (&hooks->mutex);
- g_hash_table_remove_all (hooks->clients);
- g_mutex_unlock (&hooks->mutex);
+ g_mutex_clear (&hooks->mutex);
}
void gst_debugserver_hooks_send_data (GstDebugserverHooks * hooks, GstDebugserverTcp * tcp_server,
GstDebugger__GStreamerData * gst_data)
diff --git a/src/debugserver/gstdebugserverhooks.h b/src/debugserver/gstdebugserverhooks.h
index 6353798..24d62d8 100644
--- a/src/debugserver/gstdebugserverhooks.h
+++ b/src/debugserver/gstdebugserverhooks.h
@@ -39,8 +39,6 @@ void gst_debugserver_hooks_init (GstDebugserverHooks * hooks, OkFunction ok_func
void gst_debugserver_hooks_deinit (GstDebugserverHooks * hooks);
-void gst_debugserver_hooks_clean (GstDebugserverHooks * hooks);
-
gboolean gst_debugserver_hooks_add_hook (GstDebugserverHooks * hooks,
gpointer data, TcpClient * client);
diff --git a/src/debugserver/gstdebugserverlog.c b/src/debugserver/gstdebugserverlog.c
index 48564b4..12e2140 100644
--- a/src/debugserver/gstdebugserverlog.c
+++ b/src/debugserver/gstdebugserverlog.c
@@ -79,16 +79,10 @@ GstDebugserverLog * gst_debugserver_log_new (void)
void gst_debugserver_log_free (GstDebugserverLog * log)
{
- gst_debugserver_log_clean (log);
gst_debugserver_hooks_deinit (&log->hooks);
g_free (log);
}
-void gst_debugserver_log_clean (GstDebugserverLog * log)
-{
- gst_debugserver_hooks_clean (&log->hooks);
-}
-
static gboolean gst_debugserver_log_add_hook (GstDebugserverLog * log, gint level,
const gchar * category, TcpClient * client)
{
diff --git a/src/debugserver/gstdebugserverlog.h b/src/debugserver/gstdebugserverlog.h
index 25c3e65..7793546 100644
--- a/src/debugserver/gstdebugserverlog.h
+++ b/src/debugserver/gstdebugserverlog.h
@@ -46,8 +46,6 @@ void gst_debugserver_log_send_debug_categories (GstDebugserverTcp *tcp_server, T
void gst_debugserver_log_set_threshold (const gchar * threshold);
-void gst_debugserver_log_clean (GstDebugserverLog * log);
-
void gst_debugserver_log_remove_client (GstDebugserverLog * log,
TcpClient * client);
diff --git a/src/debugserver/gstdebugservermessage.c b/src/debugserver/gstdebugservermessage.c
index 95024df..076e9a8 100644
--- a/src/debugserver/gstdebugservermessage.c
+++ b/src/debugserver/gstdebugservermessage.c
@@ -53,16 +53,10 @@ GstDebugserverMessage * gst_debugserver_message_new (void)
void gst_debugserver_message_free (GstDebugserverMessage * msg)
{
- gst_debugserver_message_clean (msg);
gst_debugserver_hooks_deinit (&msg->hooks);
g_free (msg);
}
-void gst_debugserver_message_clean (GstDebugserverMessage * msg)
-{
- gst_debugserver_hooks_clean (&msg->hooks);
-}
-
gboolean gst_debugserver_message_set_hook (GstDebugserverMessage * msg,
TcpClient * client, gboolean enable, GstDebugger__MessageRequest * request)
{
diff --git a/src/debugserver/gstdebugservermessage.h b/src/debugserver/gstdebugservermessage.h
index c6a6d04..a5eff6c 100644
--- a/src/debugserver/gstdebugservermessage.h
+++ b/src/debugserver/gstdebugservermessage.h
@@ -37,8 +37,6 @@ GstDebugserverMessage * gst_debugserver_message_new (void);
void gst_debugserver_message_free (GstDebugserverMessage * msg);
-void gst_debugserver_message_clean (GstDebugserverMessage * msg);
-
gboolean gst_debugserver_message_set_hook (GstDebugserverMessage * msg,
TcpClient * client, gboolean enable, GstDebugger__MessageRequest * request);
diff --git a/src/debugserver/gstdebugserverqe.c b/src/debugserver/gstdebugserverqe.c
index 39a694d..76bbfcd 100644
--- a/src/debugserver/gstdebugserverqe.c
+++ b/src/debugserver/gstdebugserverqe.c
@@ -92,7 +92,6 @@ GstDebugserverQE * gst_debugserver_qe_new (void)
void gst_debugserver_qe_free (GstDebugserverQE * qe)
{
- gst_debugserver_qe_clean (qe);
gst_debugserver_hooks_deinit (&qe->hooks);
g_free (qe);
}
@@ -178,11 +177,6 @@ void gst_debugserver_qe_send_qe (GstDebugserverQE * qe, GstDebugserverTcp * tcp_
g_free (pad_path);
}
-void gst_debugserver_qe_clean (GstDebugserverQE * qe)
-{
- gst_debugserver_hooks_clean (&qe->hooks);
-}
-
void gst_debugserver_qe_remove_client (GstDebugserverQE * qe, TcpClient * client)
{
gst_debugserver_hooks_remove_client (&qe->hooks, client);
diff --git a/src/debugserver/gstdebugserverqe.h b/src/debugserver/gstdebugserverqe.h
index d314b81..1e0fdfc 100644
--- a/src/debugserver/gstdebugserverqe.h
+++ b/src/debugserver/gstdebugserverqe.h
@@ -40,8 +40,6 @@ gboolean gst_debugserver_qe_set_hook (GstDebugserverQE * qe, gboolean enable,
void gst_debugserver_qe_send_qe (GstDebugserverQE * qe, GstDebugserverTcp * tcp_server, GstPad * pad,
GstMiniObject * obj);
-void gst_debugserver_qe_clean (GstDebugserverQE * qe);
-
void gst_debugserver_qe_remove_client (GstDebugserverQE * evt, TcpClient * client);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]