Bug 1121623 part 8. Remove MIDIPort::WrapObject. r=baku

It's dead code because we never create MIDIPort objects directly,
and all subclasses override WrapObject.

Differential Revision: https://phabricator.services.mozilla.com/D32206

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-05-23 05:36:56 +00:00
parent 60e78ba8a1
commit bd0c301d88
2 changed files with 0 additions and 9 deletions

View File

@ -73,11 +73,6 @@ bool MIDIPort::Initialize(const MIDIPortInfo& aPortInfo, bool aSysexEnabled) {
void MIDIPort::UnsetIPCPort() { mPort = nullptr; }
JSObject* MIDIPort::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
return MIDIPort_Binding::Wrap(aCx, this, aGivenProto);
}
void MIDIPort::GetId(nsString& aRetVal) const {
MOZ_ASSERT(mPort);
aRetVal = mPort->MIDIPortInterface::Id();

View File

@ -13,7 +13,6 @@
#include "mozilla/DOMEventTargetHelper.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/MIDIAccess.h"
#include "mozilla/dom/MIDIPortBinding.h"
#include "mozilla/dom/MIDIPortInterface.h"
struct JSContext;
@ -47,9 +46,6 @@ class MIDIPort : public DOMEventTargetHelper,
public:
nsPIDOMWindowInner* GetParentObject() const { return GetOwner(); }
virtual JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
// Getters
void GetId(nsString& aRetVal) const;
void GetManufacturer(nsString& aRetVal) const;