Index: gallery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gallery/gallery.module,v
retrieving revision 1.28.2.17
diff -u -p -r1.28.2.17 gallery.module
--- gallery.module	18 Jun 2008 20:10:44 -0000	1.28.2.17
+++ gallery.module	7 Sep 2009 03:48:33 -0000
@@ -501,37 +501,3 @@ function gallery_page() {
 
   return '';
 }
-
-/**
- * Implementation of hook_xmlsitemap_links().
- * (define additional links to add to the site map)
- */
-function gallery_xmlsitemap_links($type = NULL, $excludes = array()) {
-  if (($type != 'xml') || !variable_get('gallery_enable_sitemap', 1) || !_gallery_init(TRUE)) {
-    return;
-  }
-  
-  list($ret, $view) = GalleryView::loadView('sitemap.Sitemap');
-  if ($ret) {
-    gallery_error(t('Error loading the Gallery2 Sitemap. Make sure the \'Sitemap\' plugin is enabled in Gallery2.'), $ret);
-    return;
-  }
-  list($ret, $root) = GalleryCoreApi::getDefaultAlbumId();
-  if ($ret) {
-    gallery_error(t('Error calling getDefaultAlbumId()'), $ret);
-    return;
-  }
-  
-  // Get the sitemap from Gallery2
-  ob_start();
-  $ret = $view->renderSitemap($root);
-  $g2_sitemap = ob_get_contents();
-  ob_end_clean();
-  
-  if ($ret) {
-    gallery_error(t('Error getting sitemap from Gallery2.'), $ret);
-    return;
-  }
-  
-  return $g2_sitemap;
-}
