From ef9344b3a5b91f6b442830923dd28d779fdf8019 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 26 Jul 2017 20:03:41 -0400 Subject: [PATCH] Removed unused SpatialOperations.from_wkb. Unused since its introduction in ff60c5f9de3e8690d1e86f3e9e3f7248a15397c8. --- django/contrib/gis/db/backends/base/operations.py | 1 - django/contrib/gis/db/backends/mysql/operations.py | 4 ---- django/contrib/gis/db/backends/spatialite/operations.py | 1 - 3 files changed, 6 deletions(-) diff --git a/django/contrib/gis/db/backends/base/operations.py b/django/contrib/gis/db/backends/base/operations.py index 3afdd44ef4..5d2578d01a 100644 --- a/django/contrib/gis/db/backends/base/operations.py +++ b/django/contrib/gis/db/backends/base/operations.py @@ -38,7 +38,6 @@ class BaseSpatialOperations: # Constructors from_text = False - from_wkb = False # Default conversion functions for aggregates; will be overridden if implemented # for the spatial backend. diff --git a/django/contrib/gis/db/backends/mysql/operations.py b/django/contrib/gis/db/backends/mysql/operations.py index 1d1da1887d..6b8c20c561 100644 --- a/django/contrib/gis/db/backends/mysql/operations.py +++ b/django/contrib/gis/db/backends/mysql/operations.py @@ -36,10 +36,6 @@ class MySQLOperations(BaseSpatialOperations, DatabaseOperations): def select(self): return self.geom_func_prefix + 'AsText(%s)' - @cached_property - def from_wkb(self): - return self.geom_func_prefix + 'GeomFromWKB' - @cached_property def from_text(self): return self.geom_func_prefix + 'GeomFromText' diff --git a/django/contrib/gis/db/backends/spatialite/operations.py b/django/contrib/gis/db/backends/spatialite/operations.py index 0a84ddb71e..449e6dcacf 100644 --- a/django/contrib/gis/db/backends/spatialite/operations.py +++ b/django/contrib/gis/db/backends/spatialite/operations.py @@ -29,7 +29,6 @@ class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations): unionagg = 'GUnion' from_text = 'GeomFromText' - from_wkb = 'GeomFromWKB' select = 'AsText(%s)' gis_operators = {