diff --git a/generator/pygen/example.py b/generator/pygen/example.py index 09bf3c1e1d..8d921fd48c 100644 --- a/generator/pygen/example.py +++ b/generator/pygen/example.py @@ -89,7 +89,6 @@ def example__working_with_features(path): print("population:", ft.population()) print("road_number:", ft.road_number()) print("house_number:", ft.house_number()) - print("postcode:", ft.postcode()) print("layer:", ft.layer()) print("geom_type:", ft.geom_type()) print("center:", ft.center()) diff --git a/generator/pygen/pygen.cpp b/generator/pygen/pygen.cpp index 538bce7fbd..43353bc356 100644 --- a/generator/pygen/pygen.cpp +++ b/generator/pygen/pygen.cpp @@ -95,8 +95,6 @@ public: std::string GetHouseNumber() { return m_feature->GetHouseNumber(); } - std::string GetPostcode() { return m_feature->GetPostcode(); } - int8_t GetLayer() { return m_feature->GetLayer(); } GeomType GetGeomType() { return m_feature->GetGeomType(); } @@ -146,7 +144,6 @@ public: GetPopulation(); GetRoadNumber(); GetHouseNumber(); - GetPostcode(); GetLayer(); GetGeomType(); GetGeometry(); @@ -393,7 +390,6 @@ BOOST_PYTHON_MODULE(pygen) .def("population", &FeatureTypeWrapper::GetPopulation) .def("road_number", &FeatureTypeWrapper::GetRoadNumber) .def("house_number", &FeatureTypeWrapper::GetHouseNumber) - .def("postcode", &FeatureTypeWrapper::GetPostcode) .def("layer", &FeatureTypeWrapper::GetLayer) .def("geom_type", &FeatureTypeWrapper::GetGeomType) .def("center", &FeatureTypeWrapper::GetCenter) diff --git a/tools/python/mwm/mwm_interface.py b/tools/python/mwm/mwm_interface.py index 391c92547d..a7572f4610 100644 --- a/tools/python/mwm/mwm_interface.py +++ b/tools/python/mwm/mwm_interface.py @@ -342,10 +342,6 @@ class Feature(ABC): def house_number(self) -> str: pass - @abstractmethod - def postcode(self) -> str: - pass - @abstractmethod def layer(self) -> int: pass @@ -405,7 +401,6 @@ class Feature(ABC): "population": self.population(), "road_number": self.road_number(), "house_number": self.house_number(), - "postcode": self.postcode(), "layer": self.layer(), "geom_type": self.geom_type(), "center": center, diff --git a/tools/python/mwm/mwm_pygen.py b/tools/python/mwm/mwm_pygen.py index 604def4160..ad7bd5d0c4 100644 --- a/tools/python/mwm/mwm_pygen.py +++ b/tools/python/mwm/mwm_pygen.py @@ -94,9 +94,6 @@ class FeaturePygen(mi.Feature): def house_number(self) -> str: return self.ft.house_number() - def postcode(self) -> str: - return self.ft.postcode() - def layer(self) -> int: return self.ft.layer() diff --git a/tools/python/mwm/mwm_python.py b/tools/python/mwm/mwm_python.py index 8380127a9a..f657836e3f 100644 --- a/tools/python/mwm/mwm_python.py +++ b/tools/python/mwm/mwm_python.py @@ -228,9 +228,6 @@ class FeaturePython(mi.Feature): def limit_rect(self) -> mi.Rect: logger.warn("Method limit_rect() does not have an implementation.") - def postcode(self) -> str: - logger.warn("Method postcode() does not have an implementation.") - def index(self) -> int: return self._index diff --git a/tools/python/mwm/mwm_test.py b/tools/python/mwm/mwm_test.py index d5b6e168b1..1eb82f7c5e 100644 --- a/tools/python/mwm/mwm_test.py +++ b/tools/python/mwm/mwm_test.py @@ -90,7 +90,6 @@ def example__working_with_features(path): print("population:", ft.population()) print("road_number:", ft.road_number()) print("house_number:", ft.house_number()) - print("postcode:", ft.postcode()) print("layer:", ft.layer()) print("geom_type:", ft.geom_type()) print("center:", ft.center())