From 5ebd62ec778bc8c9540e2379e764ac52c060adfc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Apr 2013 10:03:32 +0200 Subject: Generate embedded schema in single function instead of one per object --- odb/relational/model.hxx | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'odb/relational/model.hxx') diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index 44f01c9..c50b6b5 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -694,11 +694,7 @@ namespace relational // user knows what they are doing and skip it. // if (tables_.count (name)) - { - c.set ("model-range-first", model_.names_end ()); - c.set ("model-range-last", model_.names_end ()); return; - } string id (class_fq_name (c), 2); // Remove leading '::'. @@ -706,8 +702,6 @@ namespace relational t.set ("cxx-location", c.location ()); model_.new_edge (model_, t, name); - sema_rel::model::names_iterator begin (--model_.names_end ()); - // Add columns. // { @@ -731,11 +725,6 @@ namespace relational instance mc (model_); mc->traverse (c); } - - sema_rel::model::names_iterator end (--model_.names_end ()); - - c.set ("model-range-first", begin); - c.set ("model-range-last", end); } protected: -- cgit v1.1