mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Remove GetKey callbacks from nsDoubleHashtable users. b=374906 r=bsmedberg
This commit is contained in:
parent
d98d9fdec5
commit
ea80210b60
@ -75,7 +75,6 @@ struct txKeyValueHashEntry : public PLDHashEntryHdr
|
||||
}
|
||||
|
||||
// @see nsDoubleHashtable.h
|
||||
const void* GetKey();
|
||||
PRBool MatchEntry(const void* aKey) const;
|
||||
static PLDHashNumber HashKey(const void* aKey);
|
||||
|
||||
@ -108,7 +107,6 @@ struct txIndexedKeyHashEntry : public PLDHashEntryHdr
|
||||
}
|
||||
|
||||
// @see nsDoubleHashtable.h
|
||||
const void* GetKey();
|
||||
PRBool MatchEntry(const void* aKey) const;
|
||||
static PLDHashNumber HashKey(const void* aKey);
|
||||
|
||||
|
@ -155,12 +155,6 @@ txKeyFunctionCall::getNameAtom(nsIAtom** aAtom)
|
||||
DHASH_WRAPPER(txKeyValueHash, txKeyValueHashEntry, txKeyValueHashKey&)
|
||||
DHASH_WRAPPER(txIndexedKeyHash, txIndexedKeyHashEntry, txIndexedKeyHashKey&)
|
||||
|
||||
const void*
|
||||
txKeyValueHashEntry::GetKey()
|
||||
{
|
||||
return &mKey;
|
||||
}
|
||||
|
||||
PRBool
|
||||
txKeyValueHashEntry::MatchEntry(const void* aKey) const
|
||||
{
|
||||
@ -184,12 +178,6 @@ txKeyValueHashEntry::HashKey(const void* aKey)
|
||||
HashString(key->mKeyValue);
|
||||
}
|
||||
|
||||
const void*
|
||||
txIndexedKeyHashEntry::GetKey()
|
||||
{
|
||||
return &mKey;
|
||||
}
|
||||
|
||||
PRBool
|
||||
txIndexedKeyHashEntry::MatchEntry(const void* aKey) const
|
||||
{
|
||||
|
@ -167,9 +167,6 @@
|
||||
* DESTRUCTOR
|
||||
* Called when the entry is destroyed (of course).
|
||||
*
|
||||
* const void* GetKey()
|
||||
* Must return a pointer to the key
|
||||
*
|
||||
* PRBool MatchEntry(const void* aKey) - return true or false depending on
|
||||
* whether the key pointed to by aKey matches this entry
|
||||
*
|
||||
@ -408,9 +405,6 @@ public:
|
||||
mKey(*NS_STATIC_CAST(const nsAString*, aKey)) { }
|
||||
~PLDHashStringEntry() { }
|
||||
|
||||
const void* GetKey() const {
|
||||
return NS_STATIC_CAST(const nsAString*, &mKey);
|
||||
}
|
||||
static PLDHashNumber HashKey(const void* key) {
|
||||
return HashString(*NS_STATIC_CAST(const nsAString*, key));
|
||||
}
|
||||
@ -431,9 +425,6 @@ public:
|
||||
mKey(*NS_STATIC_CAST(const nsACString*, aKey)) { }
|
||||
~PLDHashCStringEntry() { }
|
||||
|
||||
const void* GetKey() const {
|
||||
return NS_STATIC_CAST(const nsACString*, &mKey);
|
||||
}
|
||||
static PLDHashNumber HashKey(const void* key) {
|
||||
return HashString(*NS_STATIC_CAST(const nsACString*, key));
|
||||
}
|
||||
@ -454,9 +445,6 @@ public:
|
||||
mKey(*(NS_STATIC_CAST(const PRInt32*, aKey))) { }
|
||||
~PLDHashInt32Entry() { }
|
||||
|
||||
const void* GetKey() const {
|
||||
return NS_STATIC_CAST(const PRInt32*, &mKey);
|
||||
}
|
||||
static PLDHashNumber HashKey(const void* key) {
|
||||
return *NS_STATIC_CAST(const PRInt32*, key);
|
||||
}
|
||||
@ -478,9 +466,6 @@ public:
|
||||
mKey(*(const void**)aKey) { }
|
||||
~PLDHashVoidEntry() { }
|
||||
|
||||
const void* GetKey() const {
|
||||
return (const void**)&mKey;
|
||||
}
|
||||
static PLDHashNumber HashKey(const void* key) {
|
||||
return PLDHashNumber(NS_PTR_TO_INT32(*(const void**)key)) >> 2;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user