mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
60e78ba8a1
commit
bd0c301d88
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user