forked from 0ad/0ad
Fixes clang unused parameter warning
This was SVN commit r16770.
This commit is contained in:
parent
25a7d79d1e
commit
4af117434d
@ -34,9 +34,10 @@ class ObjectIdCache
|
||||
typedef js::PointerHasher<JSObject *, 3> Hasher;
|
||||
typedef js::HashMap<JSObject *, T, Hasher, js::SystemAllocPolicy> ObjectIdTable;
|
||||
|
||||
public:
|
||||
NONCOPYABLE(ObjectIdCache);
|
||||
|
||||
ObjectIdCache(shared_ptr<ScriptRuntime> rt)
|
||||
public:
|
||||
ObjectIdCache(shared_ptr<ScriptRuntime> rt)
|
||||
: table_(nullptr), m_rt(rt)
|
||||
{
|
||||
JS_AddExtraGCRootsTracer(m_rt->m_rt, ObjectIdCache::Trace, this);
|
||||
@ -100,11 +101,7 @@ class ObjectIdCache
|
||||
return table_->has(obj);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
ObjectIdCache(const ObjectIdCache&) {};
|
||||
ObjectIdCache& operator= (const ObjectIdCache& other) {};
|
||||
|
||||
private:
|
||||
static void keyMarkCallback(JSTracer *trc, JSObject *key, void *data)
|
||||
{
|
||||
ObjectIdTable* table = static_cast<ObjectIdTable*>(data);
|
||||
|
Loading…
Reference in New Issue
Block a user