From 4ec9ab52f1de05aa2cde6f715896c143f4c168e2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 10 Jul 2019 16:34:57 +0200 Subject: [PATCH] Remove IfcFileWithSchema --- src/ifcparse/IfcFile.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/ifcparse/IfcFile.h b/src/ifcparse/IfcFile.h index f613c938c9..75f6e944d8 100644 --- a/src/ifcparse/IfcFile.h +++ b/src/ifcparse/IfcFile.h @@ -174,7 +174,7 @@ public: IfcUtil::IfcBaseClass* instance_by_id(int id); /// Returns the entity with the specified GlobalId - virtual IfcUtil::IfcBaseClass* instance_by_guid(const std::string& guid); + IfcUtil::IfcBaseClass* instance_by_guid(const std::string& guid); /// Performs a depth-first traversal, returning all entity instance /// attributes as a flat list. NB: includes the root instance specified @@ -216,20 +216,6 @@ public: void build_inverses(); }; -template -class IFC_PARSE_API IfcFileWithSchema : public IfcFile { -public: - std::pair getUnit(typename Schema::IfcUnitEnum::Value unit_type) { - std::pair unit_info = IfcFile::getUnit(Schema::IfcUnitEnum::ToString(unit_type)); - return std::make_pair(unit_info.first->template as(), unit_info.second); - } - - /// Returns the entity with the specified GlobalId - virtual typename Schema::IfcRoot* instance_by_guid(const std::string& guid) { - return IfcFile::instance_by_guid(guid)->template as(); - } -}; - #ifdef WITH_IFCXML IFC_PARSE_API IfcFile* parse_ifcxml(const std::string& filename); #endif