Remove unused methods of IDWeakMap
This commit is contained in:
parent
2cd41b2f84
commit
7f2a46cdd5
4 changed files with 1 additions and 25 deletions
|
@ -36,10 +36,6 @@ void IDWeakMap::Remove(int32_t id) {
|
|||
id_weak_map_.Remove(id);
|
||||
}
|
||||
|
||||
void IDWeakMap::Clear() {
|
||||
id_weak_map_.Clear();
|
||||
}
|
||||
|
||||
// static
|
||||
void IDWeakMap::BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> prototype) {
|
||||
|
@ -47,8 +43,7 @@ void IDWeakMap::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("set", &IDWeakMap::Set)
|
||||
.SetMethod("get", &IDWeakMap::Get)
|
||||
.SetMethod("has", &IDWeakMap::Has)
|
||||
.SetMethod("remove", &IDWeakMap::Remove)
|
||||
.SetMethod("clear", &IDWeakMap::Clear);
|
||||
.SetMethod("remove", &IDWeakMap::Remove);
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
@ -30,7 +30,6 @@ class IDWeakMap : public mate::Wrappable<IDWeakMap> {
|
|||
v8::Local<v8::Object> Get(v8::Isolate* isolate, int32_t id);
|
||||
bool Has(int32_t id);
|
||||
void Remove(int32_t id);
|
||||
void Clear();
|
||||
|
||||
atom::IDWeakMap id_weak_map_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue