diff --git a/object_schema.cpp b/object_schema.cpp index 643fdfce..adf5bc94 100644 --- a/object_schema.cpp +++ b/object_schema.cpp @@ -63,18 +63,3 @@ Property *ObjectSchema::property_for_name(std::string name) { } return nullptr; } - -std::vector ObjectSchema::object_schema_from_group(realm::Group *group) { - // generate object schema and class mapping for all tables in the realm - unsigned long numTables = group->size(); - vector object_schema; - - for (unsigned long i = 0; i < numTables; i++) { - std::string name = ObjectStore::object_type_for_table_name(group->get_table_name(i).data()); - if (name.length()) { - object_schema.push_back(ObjectSchema(group, name)); - } - } - - return object_schema; -} diff --git a/object_schema.hpp b/object_schema.hpp index 0df5c524..23918117 100644 --- a/object_schema.hpp +++ b/object_schema.hpp @@ -31,8 +31,6 @@ namespace realm { ObjectSchema() {} ObjectSchema(Group *group, std::string name); - static std::vector object_schema_from_group(Group *group); - std::string name; std::vector properties; std::string primary_key;