diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 3870f7ce..33fde2b9 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -237,7 +237,6 @@ public: static void delete_model(ContextType, ObjectType, Arguments, ReturnValue &); static void object_for_object_id(ContextType, ObjectType, Arguments, ReturnValue&); static void privileges(ContextType, ObjectType, Arguments, ReturnValue&); - static void compute_size(ContextType, ObjectType, Arguments, ReturnValue&); // properties static void get_empty(ContextType, ObjectType, ReturnValue &); @@ -296,7 +295,6 @@ public: {"writeCopyTo", wrap}, {"deleteModel", wrap}, {"privileges", wrap}, - {"computeSize", wrap}, {"_objectForObjectId", wrap}, #if REALM_ENABLE_SYNC {"_waitForDownload", wrap}, @@ -1178,14 +1176,5 @@ void RealmClass::privileges(ContextType ctx, ObjectType this_object, Argument return_value.set(object); } -template -void RealmClass::compute_size(ContextType ctx, ObjectType this_object, Arguments args, ReturnValue &return_value) { - args.validate_maximum(0); - - SharedRealm realm = *get_internal>(this_object); - auto size = realm->read_group().compute_aggregated_byte_size(); - return_value.set(Value::from_number(ctx, size)); -} - } // js } // realm