From 3c6ecf6b65d055f83f01cf0af3ed54b3ee03c5c5 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Fri, 5 Jun 2015 14:06:19 -0700 Subject: [PATCH] remove duplicate code --- object_schema.cpp | 15 --------------- object_schema.hpp | 2 -- 2 files changed, 17 deletions(-) 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;