Remove unused methods of IDWeakMap

This commit is contained in:
Cheng Zhao 2016-05-11 12:24:02 +09:00
parent 2cd41b2f84
commit 7f2a46cdd5
4 changed files with 1 additions and 25 deletions

View file

@ -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

View file

@ -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_;