summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2005-07-29 14:43:59 +0000
committerRoss Burton <ross@openedhand.com>2005-07-29 14:43:59 +0000
commit6e4af28a9b1ea6797dcdb8679ac7d081c708861f (patch)
tree941abb18b2a4db85f20a9d11a8008e25c625aad2
parentc9c16dd08766d3ad25a362ae335e64f1ca907373 (diff)
downloaddbus-6e4af28a9b1ea6797dcdb8679ac7d081c708861f.tar.gz
Remove unused condvar
-rw-r--r--ChangeLog5
-rw-r--r--dbus/dbus-connection.c9
2 files changed, 5 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 805c16a1..147b6744 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-29 Ross Burton <ross@openedhand.com>
+
+ * dbus/dbus-connection.c:
+ Don't create a DBusCondVar which is never used.
+
2005-07-27 Ross Burton <ross@openedhand.com>
* dbus/dbus-message.c:
diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c
index 10a2d0f2..b757b42b 100644
--- a/dbus/dbus-connection.c
+++ b/dbus/dbus-connection.c
@@ -1076,7 +1076,6 @@ _dbus_connection_new_for_transport (DBusTransport *transport)
DBusMutex *mutex;
DBusMutex *io_path_mutex;
DBusMutex *dispatch_mutex;
- DBusCondVar *message_returned_cond;
DBusCondVar *dispatch_cond;
DBusCondVar *io_path_cond;
DBusList *disconnect_link;
@@ -1091,7 +1090,6 @@ _dbus_connection_new_for_transport (DBusTransport *transport)
mutex = NULL;
io_path_mutex = NULL;
dispatch_mutex = NULL;
- message_returned_cond = NULL;
dispatch_cond = NULL;
io_path_cond = NULL;
disconnect_link = NULL;
@@ -1130,10 +1128,6 @@ _dbus_connection_new_for_transport (DBusTransport *transport)
if (dispatch_mutex == NULL)
goto error;
- message_returned_cond = _dbus_condvar_new ();
- if (message_returned_cond == NULL)
- goto error;
-
dispatch_cond = _dbus_condvar_new ();
if (dispatch_cond == NULL)
goto error;
@@ -1214,9 +1208,6 @@ _dbus_connection_new_for_transport (DBusTransport *transport)
if (dispatch_cond != NULL)
_dbus_condvar_free (dispatch_cond);
- if (message_returned_cond != NULL)
- _dbus_condvar_free (message_returned_cond);
-
if (mutex != NULL)
_dbus_mutex_free (mutex);