mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Bug 891276: Removed unused function dbus_returns_uint32, r=echou
AddServiceRecords was the only user of this function. This patch cleans it up.
This commit is contained in:
parent
90077dbf0a
commit
84597f8427
@ -630,22 +630,6 @@ int dbus_returns_int32(DBusMessage *reply)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int dbus_returns_uint32(DBusMessage *reply)
|
||||
{
|
||||
DBusError err;
|
||||
uint32_t ret = -1;
|
||||
|
||||
dbus_error_init(&err);
|
||||
if (!dbus_message_get_args(reply, &err,
|
||||
DBUS_TYPE_UINT32, &ret,
|
||||
DBUS_TYPE_INVALID)) {
|
||||
LOG_AND_FREE_DBUS_ERROR_WITH_MSG(&err, reply);
|
||||
}
|
||||
|
||||
dbus_message_unref(reply);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void DBusReplyHandler::Callback(DBusMessage* aReply, void* aData)
|
||||
{
|
||||
MOZ_ASSERT(aData);
|
||||
|
@ -163,8 +163,6 @@ DBusMessage* dbus_func_args_timeout_valist(DBusConnection* conn,
|
||||
|
||||
int dbus_returns_int32(DBusMessage *reply);
|
||||
|
||||
int dbus_returns_uint32(DBusMessage *reply);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user