diff --git a/rss_permissions.module b/rss_permissions.module
index df08bcd..62e8973 100755
--- a/rss_permissions.module
+++ b/rss_permissions.module
@@ -99,10 +99,8 @@ function rss_permissions_theme_registry_alter(&$theme_registry) {
  * Check permission to view the feed before displaying the icon.
  */
 function rss_permissions_theme_feed_icon($variables) {  
-	//dsm($variables);
-	//dsm('permissions_feed_url :'.rss_permissions_feed_url_access($variables['url']));
   if (rss_permissions_feed_url_access($variables['url'])) {
-	return theme_feed_icon($variables);
+    return theme_feed_icon($variables);
   }  
   return '';
 }
@@ -191,32 +189,17 @@ function rss_permissions_feed_url_access($url) {
 }
 
 /**
- * Implementation of theme_preprocess_page().
- * Use regex to remove RSS link from HEAD, if the user has no permission for that feed.
- */
-/*
- function rss_permissions_preprocess_page(&$vars) {
-  if (preg_match('/<link rel="alternate" type="application\/rss\+xml" title=".*?" href="(.*?)" \/>/', $vars['head'], $matches)) {
-  // $matches[1] is the URL to the feed.
-    if (!empty($matches[1]) && !rss_permissions_feed_url_access($matches[1])) {
-      $vars['head'] = preg_replacepreg_replace('/<link rel="alternate" type="application\/rss\+xml" title=".*?" href=".*?" \/>/', '', $vars['head']);
-    }
-  }
-}
-*/
-
-/**
  * Implementation of theme_html_head_alter().
  * Remove RSS link from HEAD, if the user has no permission for that feed.
  */
 function rss_permissions_html_head_alter(&$head_elements) {    
   foreach ($head_elements as $key => $element) {
-    $rel = isset($element['#attributes']['rel']) ? $element['#attributes']['rel'] : NULL;		
+    $rel = isset($element['#attributes']['rel']) ? $element['#attributes']['rel'] : NULL;
     if (isset($rel) && $rel == 'alternate') {
       $href = isset($element['#attributes']['href']) ? $element['#attributes']['href'] : NULL;
       if (isset($href) && !rss_permissions_feed_url_access($href)) {
         unset($head_elements[$key]);
-      }		
+      }
     }
   }  
 }
\ No newline at end of file
