Commits

Anonymous committed f0b4993

gis: Removed unused `KMLSitemap` code that crept in outside the `contrib.gis` namespace.

  • Participants
  • Parent commits b3ab812
  • Branches gis

Comments (0)

Files changed (1)

django/contrib/sitemaps/__init__.py

         if self.date_field is not None:
             return getattr(item, self.date_field)
         return None
-
-
-class KMLSitemap(Sitemap):
-    """
-    A minimal hook to 
-    """
-    def __init__(self, locations=None):
-        if locations is None:
-            self.locations = []
-        else:
-            self.locations = locations
-
-    def items(self):
-        return self.locations
-
-    def location(self, obj):
-        urlresolvers.reverse('django.contrib.gis.sitemaps.kml',
-                             kwargs={'label':obj[0],
-                                     'field':obj[1]})
-        
-