Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Useless funcs variable in design_doc_slug

#40

design_doc_slug in design_doc.rb
Was previously used for MD5 digest of views

From 13ccd18603a32c1801ccedd23e85e2e745717c4a Mon Sep 17 00:00:00 2001
From: Julien Sanchez <julien.sanchez@lim.eu>
Date: Fri, 18 Sep 2009 12:03:35 +0200
Subject: [PATCH] Useless funcs variable in design_doc_slug

Was previously used for MD5 digest of views
---
 lib/couchrest/mixins/design_doc.rb |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/lib/couchrest/mixins/design_doc.rb b/lib/couchrest/mixins/design_doc.rb
index 35729a7..eae4351 100644
--- a/lib/couchrest/mixins/design_doc.rb
+++ b/lib/couchrest/mixins/design_doc.rb
@@ -21,10 +21,6 @@ module CouchRest
 
         def design_doc_slug
           return design_doc_slug_cache if (design_doc_slug_cache && design_doc_fresh)
-          funcs = []
-          design_doc['views'].each do |name, view|
-            funcs << "#{name}/#{view['map']}#{view['reduce']}"
-          end
           self.design_doc_slug_cache = self.to_s
         end
 
@@ -100,4 +96,4 @@ module CouchRest
       
     end
   end
-end
\ No newline at end of file
+end
-- 
1.6.4

Reported by Julien Sanchez · September 18th, 2009 @ 03:24 AM

State: new
Milestone: none
Assigned to: J. Chris A. J. Chris A.

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.