Skip to content

Commit

Permalink
Bug 1176898 - Remove redundant DisconnectFromOwner of BluetoothDiscov…
Browse files Browse the repository at this point in the history
…eryHandle. r=btian

--HG--
extra : rebase_source : 3275e369491f07e67d0678d8655c4fcd8f65dca4
  • Loading branch information
BruceSunMozilla committed Jul 21, 2015
1 parent 51fb1c0 commit 4eac95e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions dom/bluetooth/bluetooth2/BluetoothAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,6 @@ void
BluetoothAdapter::SetDiscoveryHandleInUse(
BluetoothDiscoveryHandle* aDiscoveryHandle)
{
// Stop discovery handle in use from listening to "DeviceFound" signal
if (mDiscoveryHandleInUse) {
mDiscoveryHandleInUse->DisconnectFromOwner();
}

mDiscoveryHandleInUse = aDiscoveryHandle;
}

Expand Down
6 changes: 0 additions & 6 deletions dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ BluetoothDiscoveryHandle::~BluetoothDiscoveryHandle()
{
}

void
BluetoothDiscoveryHandle::DisconnectFromOwner()
{
DOMEventTargetHelper::DisconnectFromOwner();
}

// static
already_AddRefed<BluetoothDiscoveryHandle>
BluetoothDiscoveryHandle::Create(nsPIDOMWindow* aWindow)
Expand Down
2 changes: 0 additions & 2 deletions dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ class BluetoothDiscoveryHandle final : public DOMEventTargetHelper
virtual JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;

virtual void DisconnectFromOwner() override;

private:
BluetoothDiscoveryHandle(nsPIDOMWindow* aWindow);

Expand Down

0 comments on commit 4eac95e

Please sign in to comment.