Skip to content

Commit

Permalink
Bug 1442039 part 7. Remove now-unused nsScriptNameSpaceManager::Regis…
Browse files Browse the repository at this point in the history
…terClassName. r=peterv

MozReview-Commit-ID: 9mpz8o29WGp
  • Loading branch information
bzbarsky committed Mar 22, 2018
1 parent a59087c commit ba414c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
25 changes: 0 additions & 25 deletions dom/base/nsScriptNameSpaceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,31 +201,6 @@ nsScriptNameSpaceManager::LookupName(const nsAString& aName,
return nullptr;
}

nsresult
nsScriptNameSpaceManager::RegisterClassName(const char *aClassName,
int32_t aDOMClassInfoID,
const char16_t **aResult)
{
if (!nsCRT::IsAscii(aClassName)) {
NS_ERROR("Trying to register a non-ASCII class name");
return NS_OK;
}
nsGlobalNameStruct *s = AddToHash(aClassName, aResult);
NS_ENSURE_TRUE(s, NS_ERROR_OUT_OF_MEMORY);

if (s->mType == nsGlobalNameStruct::eTypeClassConstructor) {
return NS_OK;
}

NS_ASSERTION(s->mType == nsGlobalNameStruct::eTypeNotInitialized,
"Whaaa, JS environment name clash!");

s->mType = nsGlobalNameStruct::eTypeClassConstructor;
s->mDOMClassInfoID = aDOMClassInfoID;

return NS_OK;
}

nsresult
nsScriptNameSpaceManager::OperateCategoryEntryHash(nsICategoryManager* aCategoryManager,
const char* aCategory,
Expand Down
4 changes: 0 additions & 4 deletions dom/base/nsScriptNameSpaceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ class nsScriptNameSpaceManager : public nsIObserver,
const nsGlobalNameStruct* LookupName(const nsAString& aName,
const char16_t **aClassName = nullptr);

nsresult RegisterClassName(const char *aClassName,
int32_t aDOMClassInfoID,
const char16_t **aResult);

class NameIterator : public PLDHashTable::Iterator
{
public:
Expand Down

0 comments on commit ba414c6

Please sign in to comment.