BusTransaction: remove confusing getter of connections
authorChengwei Yang <chengwei.yang@intel.com>
Thu, 28 Nov 2013 01:17:38 +0000 (09:17 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 6 Jan 2014 15:59:18 +0000 (15:59 +0000)
commit854554c3a67b880ac92fa72c476b772cb5968b26
tree7183d4945a1f7ef833dde7303606efc5df1bb6d0
parentb2a517040cd6f0fcc676abe833675d5473820226
BusTransaction: remove confusing getter of connections

There is a DBusList* member of BusTransaction named "connections", while
its getter function bus_transaction_get_connections() returns
context->connections which in fact is a BusConnections pointer, this is
quite confusing. Because this is what bus_context_get_connections()
returns.

This patch call out to bus_context_get_connections() directly and remove
the then unused bus_transaction_get_connections().

https://bugs.freedesktop.org/show_bug.cgi?id=71597
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/connection.c
bus/connection.h
bus/dispatch.c
bus/stats.c