зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1288823, part 5 - Remove the unused XPCWrappedNativeProto::mClassInfoFlags. r=mrbkap
This commit is contained in:
Родитель
9f3f1c7a9b
Коммит
f71885f593
|
@ -17,12 +17,10 @@ int32_t XPCWrappedNativeProto::gDEBUG_LiveProtoCount = 0;
|
|||
|
||||
XPCWrappedNativeProto::XPCWrappedNativeProto(XPCWrappedNativeScope* Scope,
|
||||
nsIClassInfo* ClassInfo,
|
||||
uint32_t ClassInfoFlags,
|
||||
XPCNativeSet* Set)
|
||||
: mScope(Scope),
|
||||
mJSProtoObject(nullptr),
|
||||
mClassInfo(ClassInfo),
|
||||
mClassInfoFlags(ClassInfoFlags),
|
||||
mSet(Set),
|
||||
mScriptableInfo(nullptr)
|
||||
{
|
||||
|
@ -164,10 +162,6 @@ XPCWrappedNativeProto::GetNewOrUsed(XPCWrappedNativeScope* scope,
|
|||
AutoMarkingWrappedNativeProtoPtr proto(cx);
|
||||
ClassInfo2WrappedNativeProtoMap* map = nullptr;
|
||||
|
||||
uint32_t ciFlags;
|
||||
if (NS_FAILED(classInfo->GetFlags(&ciFlags)))
|
||||
ciFlags = 0;
|
||||
|
||||
map = scope->GetWrappedNativeProtoMap();
|
||||
proto = map->Find(classInfo);
|
||||
if (proto)
|
||||
|
@ -178,7 +172,7 @@ XPCWrappedNativeProto::GetNewOrUsed(XPCWrappedNativeScope* scope,
|
|||
if (!set)
|
||||
return nullptr;
|
||||
|
||||
proto = new XPCWrappedNativeProto(scope, classInfo, ciFlags, set);
|
||||
proto = new XPCWrappedNativeProto(scope, classInfo, set);
|
||||
|
||||
if (!proto || !proto->Init(scriptableCreateInfo, callPostCreatePrototype)) {
|
||||
delete proto.get();
|
||||
|
|
|
@ -1683,20 +1683,6 @@ public:
|
|||
XPCNativeScriptableInfo*
|
||||
GetScriptableInfo() {return mScriptableInfo;}
|
||||
|
||||
uint32_t
|
||||
GetClassInfoFlags() const {return mClassInfoFlags;}
|
||||
|
||||
#ifdef GET_IT
|
||||
#undef GET_IT
|
||||
#endif
|
||||
#define GET_IT(f_) const {return !!(mClassInfoFlags & nsIClassInfo:: f_ );}
|
||||
|
||||
bool ClassIsSingleton() GET_IT(SINGLETON)
|
||||
bool ClassIsDOMObject() GET_IT(DOM_OBJECT)
|
||||
bool ClassIsPluginObject() GET_IT(PLUGIN_OBJECT)
|
||||
|
||||
#undef GET_IT
|
||||
|
||||
void SetScriptableInfo(XPCNativeScriptableInfo* si)
|
||||
{MOZ_ASSERT(!mScriptableInfo, "leak here!"); mScriptableInfo = si;}
|
||||
|
||||
|
@ -1756,7 +1742,6 @@ protected:
|
|||
// hide ctor
|
||||
XPCWrappedNativeProto(XPCWrappedNativeScope* Scope,
|
||||
nsIClassInfo* ClassInfo,
|
||||
uint32_t ClassInfoFlags,
|
||||
XPCNativeSet* Set);
|
||||
|
||||
bool Init(const XPCNativeScriptableCreateInfo* scriptableCreateInfo,
|
||||
|
@ -1771,7 +1756,6 @@ private:
|
|||
XPCWrappedNativeScope* mScope;
|
||||
JS::ObjectPtr mJSProtoObject;
|
||||
nsCOMPtr<nsIClassInfo> mClassInfo;
|
||||
uint32_t mClassInfoFlags;
|
||||
XPCNativeSet* mSet;
|
||||
XPCNativeScriptableInfo* mScriptableInfo;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче