diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-05-18 23:54:04 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2020-01-19 15:23:50 -0800 |
commit | 88d01bf33a76d245b6cb70b83ff66b7ae121b2e4 (patch) | |
tree | b7afc30727e085d04fff4df9ad3af50b8c605a0c /gi/object.h | |
parent | f052c29c84437f9f8c5a42664ec256ab14fd8a1a (diff) | |
download | gjs-88d01bf33a76d245b6cb70b83ff66b7ae121b2e4.tar.gz |
js: Remove hashtable init() calls
JS::GCHashMap and JS::GCHashSet no longer need to have their init()
method called before using them. In the case where init() wasn't
reserving a particular amount of space, it can just be removed. In the
case where it was, it must be replaced by a call to reserve().
Diffstat (limited to 'gi/object.h')
-rw-r--r-- | gi/object.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gi/object.h b/gi/object.h index 0935551b..1ba36f9d 100644 --- a/gi/object.h +++ b/gi/object.h @@ -207,7 +207,6 @@ class ObjectPrototype FieldCache m_field_cache; ObjectPrototype(GIObjectInfo* info, GType gtype); - GJS_JSAPI_RETURN_CONVENTION bool init(JSContext* cx); ~ObjectPrototype(); static constexpr InfoType::Tag info_type_tag = InfoType::Object; |