[Groonga-commit] droonga/droonga-engine at 2d113f9 [master] No need to define LiveNodesList class

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri May 9 13:47:41 JST 2014


YUKI Hiroshi	2014-05-09 13:47:41 +0900 (Fri, 09 May 2014)

  New Revision: 2d113f979083a8e958ecf0412a7e0c7d26aefee3
  https://github.com/droonga/droonga-engine/commit/2d113f979083a8e958ecf0412a7e0c7d26aefee3

  Message:
    No need to define LiveNodesList class

  Removed files:
    lib/droonga/live_nodes_list.rb
  Modified files:
    lib/droonga/live_nodes_list_loader.rb

  Deleted: lib/droonga/live_nodes_list.rb (+0 -26) 100644
===================================================================
--- lib/droonga/live_nodes_list.rb    2014-05-09 13:39:25 +0900 (cd68502)
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright (C) 2014 Droonga Project
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License version 2.1 as published by the Free Software Foundation.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-module Droonga
-  class LiveNodesList
-    def initialize(list)
-      @list = list
-    end
-
-    def include?(node)
-      @list.key?(node)
-    end
-  end
-end

  Modified: lib/droonga/live_nodes_list_loader.rb (+1 -2)
===================================================================
--- lib/droonga/live_nodes_list_loader.rb    2014-05-09 13:39:25 +0900 (c22b10c)
+++ lib/droonga/live_nodes_list_loader.rb    2014-05-09 13:47:41 +0900 (1656f7d)
@@ -15,7 +15,6 @@
 
 require "pathname"
 require "json"
-require "droonga/live_nodes_list"
 
 module Droonga
   class LiveNodesListLoader
@@ -33,7 +32,7 @@ module Droonga
     def load
       list_file = Pathname(file_path)
       list = parse_list_file(list_file)
-      LiveNodesList.new(list)
+      list.keys
     end
 
     private
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index