зеркало из https://github.com/mozilla/gecko-dev.git
Bug 891276: Cleanup *ServiceRecords functions, r=echou
AddServiceRecords and RemoveServiceRecords are unused. This patch removes any related code.
This commit is contained in:
Родитель
b909411a56
Коммит
90077dbf0a
|
@ -341,28 +341,6 @@ ExtractHandles(DBusMessage *aReply, nsTArray<uint32_t>& aOutHandles)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
|
||||||
bool
|
|
||||||
BluetoothDBusService::AddServiceRecords(const char* serviceName,
|
|
||||||
unsigned long long uuidMsb,
|
|
||||||
unsigned long long uuidLsb,
|
|
||||||
int channel)
|
|
||||||
{
|
|
||||||
MOZ_ASSERT(!NS_IsMainThread());
|
|
||||||
|
|
||||||
DBusMessage* reply =
|
|
||||||
dbus_func_args(gThreadConnection->GetConnection(),
|
|
||||||
NS_ConvertUTF16toUTF8(sAdapterPath).get(),
|
|
||||||
DBUS_ADAPTER_IFACE, "AddRfcommServiceRecord",
|
|
||||||
DBUS_TYPE_STRING, &serviceName,
|
|
||||||
DBUS_TYPE_UINT64, &uuidMsb,
|
|
||||||
DBUS_TYPE_UINT64, &uuidLsb,
|
|
||||||
DBUS_TYPE_UINT16, &channel,
|
|
||||||
DBUS_TYPE_INVALID);
|
|
||||||
|
|
||||||
return reply ? dbus_returns_uint32(reply) : -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// static
|
// static
|
||||||
bool
|
bool
|
||||||
BluetoothDBusService::AddReservedServicesInternal(
|
BluetoothDBusService::AddReservedServicesInternal(
|
||||||
|
|
|
@ -57,18 +57,6 @@ public:
|
||||||
const nsAString& aDeviceAddress,
|
const nsAString& aDeviceAddress,
|
||||||
nsAString& aDevicePath) MOZ_OVERRIDE;
|
nsAString& aDevicePath) MOZ_OVERRIDE;
|
||||||
|
|
||||||
static bool
|
|
||||||
AddServiceRecords(const char* serviceName,
|
|
||||||
unsigned long long uuidMsb,
|
|
||||||
unsigned long long uuidLsb,
|
|
||||||
int channel);
|
|
||||||
|
|
||||||
static bool
|
|
||||||
RemoveServiceRecords(const char* serviceName,
|
|
||||||
unsigned long long uuidMsb,
|
|
||||||
unsigned long long uuidLsb,
|
|
||||||
int channel);
|
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
AddReservedServicesInternal(const nsTArray<uint32_t>& aServices,
|
AddReservedServicesInternal(const nsTArray<uint32_t>& aServices,
|
||||||
nsTArray<uint32_t>& aServiceHandlesContainer);
|
nsTArray<uint32_t>& aServiceHandlesContainer);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче