From 77fc1de6c334b5bacbeb43f466f1c55253c37a32 Mon Sep 17 00:00:00 2001 From: bgbsww Date: Sun, 2 Jun 2024 13:37:01 -0400 Subject: [PATCH] Toponaming: remove unused method with compile warnings --- src/App/GeoFeature.cpp | 8 -------- src/App/GeoFeature.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/App/GeoFeature.cpp b/src/App/GeoFeature.cpp index 5c48f05afeae..0040503e9356 100644 --- a/src/App/GeoFeature.cpp +++ b/src/App/GeoFeature.cpp @@ -278,12 +278,4 @@ std::vector GeoFeature::getElementTypes(bool /*all*/) const return prop->getComplexData()->getElementTypes(); } -std::vector GeoFeature::getHigherElements(const char* element, bool silent) const -{ - auto prop = getPropertyOfGeometry(); - if (!prop) { - return {}; - } - return prop->getComplexData()->getHigherElements(element, silent); -} #endif diff --git a/src/App/GeoFeature.h b/src/App/GeoFeature.h index aba2d0cb44cb..66e1f795b589 100644 --- a/src/App/GeoFeature.h +++ b/src/App/GeoFeature.h @@ -179,8 +179,6 @@ class AppExport GeoFeature : public App::DocumentObject virtual std::vector getElementTypes(bool all=true) const; - /// Return the higher level element names of the given element - virtual std::vector getHigherElements(const char *name, bool silent=false) const; protected: void onChanged(const Property* prop) override;