From 14004504b1105d2b1f50c96644e1ce3494f4791e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 4 Sep 2015 09:40:40 -0700 Subject: [PATCH] Remove an unused function --- object_store.cpp | 11 ----------- object_store.hpp | 3 --- 2 files changed, 14 deletions(-) diff --git a/object_store.cpp b/object_store.cpp index 1493353f..05682adf 100644 --- a/object_store.cpp +++ b/object_store.cpp @@ -249,17 +249,6 @@ std::vector ObjectStore::verify_object_schema(O return exceptions; } -void ObjectStore::update_column_mapping(Group *group, ObjectSchema &target_schema) { - ObjectSchema table_schema(group, target_schema.name); - for (auto& target_prop : target_schema.properties) { - auto table_prop = table_schema.property_for_name(target_prop.name); - if (table_prop) { - // Update target property column to match what's in the realm if it exists - target_prop.table_column = table_prop->table_column; - } - } -} - // set references to tables on targetSchema and create/update any missing or out-of-date tables // if update existing is true, updates existing tables, otherwise validates existing tables // NOTE: must be called from within write transaction diff --git a/object_store.hpp b/object_store.hpp index 5778ff64..34169ccd 100644 --- a/object_store.hpp +++ b/object_store.hpp @@ -47,9 +47,6 @@ namespace realm { // throws if the schema is invalid or does not match static void verify_schema(Schema const& actual_schema, Schema &target_schema, bool allow_missing_tables = false); - // updates the target_column member for all properties based on the column indexes in the passed in group - static void update_column_mapping(Group *group, ObjectSchema &target_schema); - // determines if a realm with the given old schema needs non-migration // changes to make it compatible with the given target schema static bool needs_update(Schema const& old_schema, Schema& schema);