From ce68e14b61cc25a28f7dbc39a609898b71df4017 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Apr 2011 18:17:15 +0200 Subject: Remove unused flag --- odb/context.hxx | 4 ---- odb/relational/type-processor.cxx | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'odb') diff --git a/odb/context.hxx b/odb/context.hxx index ef8b2c8..3055997 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -373,10 +373,6 @@ protected: // static column_type_flags const ctf_default_null = 0x01; - // Get object id reference instead of object id. - // - static column_type_flags const ctf_object_id_ref = 0x02; - // Return empty string if there is no mapping. The second argument // is the custom type or empty string if it is not specified. // diff --git a/odb/relational/type-processor.cxx b/odb/relational/type-processor.cxx index 52bec34..05c50a5 100644 --- a/odb/relational/type-processor.cxx +++ b/odb/relational/type-processor.cxx @@ -130,7 +130,7 @@ namespace relational if (type.empty () && idt.count ("type")) type = idt.get ("type"); - column_type_flags f (ctf_object_id_ref); + column_type_flags f (ctf_none); if (null_pointer (m)) f |= ctf_default_null; @@ -143,7 +143,7 @@ namespace relational type = database_type (t, orig, m, ctf_none); if (m.count ("id")) - ref_type = database_type (t, orig, m, ctf_object_id_ref); + ref_type = database_type (t, orig, m, ctf_none); } if (!type.empty ()) @@ -217,7 +217,7 @@ namespace relational if (type.empty () && idt.count ("type")) type = idt.get ("type"); - column_type_flags f (ctf_object_id_ref); + column_type_flags f (ctf_none); if (null_pointer (m, prefix)) f |= ctf_default_null; -- cgit v1.1