Bug 1121623 part 7. Remove AuthenticatorResponse::WrapObject. r=peterv

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

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-05-24 07:23:54 +00:00
Родитель 4ff98a3a1d
Коммит 60e78ba8a1
2 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -4,7 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/WebAuthenticationBinding.h"
#include "mozilla/dom/AuthenticatorResponse.h"
namespace mozilla {
@ -43,11 +42,6 @@ AuthenticatorResponse::~AuthenticatorResponse() {
mozilla::DropJSObjects(this);
}
JSObject* AuthenticatorResponse::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
return AuthenticatorResponse_Binding::Wrap(aCx, this, aGivenProto);
}
void AuthenticatorResponse::GetClientDataJSON(
JSContext* aCx, JS::MutableHandle<JSObject*> aRetVal) {
if (!mClientDataJSONCachedObj) {

Просмотреть файл

@ -31,9 +31,6 @@ class AuthenticatorResponse : public nsISupports, public nsWrapperCache {
public:
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
void GetFormat(nsString& aRetVal) const;
void GetClientDataJSON(JSContext* aCx, JS::MutableHandle<JSObject*> aRetVal);