Bug 1611197, part 3 - Remove some unused hasinterface methods. r=nika

I found these via the code coverage report for XPCInlines.h.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew McCreight 2020-01-23 17:48:40 +00:00
Родитель aed4575d2d
Коммит 3b96774e64
2 изменённых файлов: 0 добавлений и 22 удалений

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

@ -248,20 +248,6 @@ inline bool XPCNativeSet::FindMember(JS::HandleId name,
return true;
}
inline XPCNativeInterface* XPCNativeSet::FindInterfaceWithIID(
const nsIID& iid) const {
XPCNativeInterface* const* pp = mInterfaces;
for (int i = (int)mInterfaceCount; i > 0; i--, pp++) {
XPCNativeInterface* iface = *pp;
if (iface->GetIID()->Equals(iid)) {
return iface;
}
}
return nullptr;
}
inline bool XPCNativeSet::HasInterface(XPCNativeInterface* aInterface) const {
XPCNativeInterface* const* pp = mInterfaces;
@ -320,10 +306,6 @@ inline XPCWrappedNativeTearOff::~XPCWrappedNativeTearOff() {
/***************************************************************************/
inline bool XPCWrappedNative::HasInterfaceNoQI(const nsIID& iid) {
return nullptr != GetSet()->FindInterfaceWithIID(iid);
}
inline void XPCWrappedNative::SweepTearOffs() {
for (XPCWrappedNativeTearOff* to = &mFirstTearOff; to;
to = to->GetNextTearOff()) {

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

@ -1159,8 +1159,6 @@ class XPCNativeSet final {
inline bool HasInterface(XPCNativeInterface* aInterface) const;
inline XPCNativeInterface* FindInterfaceWithIID(const nsIID& iid) const;
uint16_t GetInterfaceCount() const { return mInterfaceCount; }
XPCNativeInterface** GetInterfaceArray() { return mInterfaces; }
@ -1463,8 +1461,6 @@ class XPCWrappedNative final : public nsIXPConnectWrappedNative {
return CallMethod(ccx, CALL_SETTER);
}
inline bool HasInterfaceNoQI(const nsIID& iid);
XPCWrappedNativeTearOff* FindTearOff(JSContext* cx,
XPCNativeInterface* aInterface,
bool needJSObject = false,