зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
aed4575d2d
Коммит
3b96774e64
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче