Kouhei Sutou
null+****@clear*****
Sat Feb 8 13:50:51 JST 2014
Kouhei Sutou 2014-02-08 13:50:51 +0900 (Sat, 08 Feb 2014) New Revision: bff0e4adef536583efd5e241c07de80b8be60fc7 https://github.com/droonga/fluent-plugin-droonga/commit/bff0e4adef536583efd5e241c07de80b8be60fc7 Message: Remove unused code Removed files: lib/droonga/plugin/metadata/plugin.rb Modified files: lib/droonga/pluggable.rb Modified: lib/droonga/pluggable.rb (+0 -6) =================================================================== --- lib/droonga/pluggable.rb 2014-02-07 22:44:13 +0900 (1420742) +++ lib/droonga/pluggable.rb 2014-02-08 13:50:51 +0900 (31f2f99) @@ -13,14 +13,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -require "droonga/plugin/metadata/plugin" - module Droonga module Pluggable - def plugin - Plugin::Metadata::Plugin.new(self) - end - def options @options ||= {} end Deleted: lib/droonga/plugin/metadata/plugin.rb (+0 -39) 100644 =================================================================== --- lib/droonga/plugin/metadata/plugin.rb 2014-02-07 22:44:13 +0900 (b279426) +++ /dev/null @@ -1,39 +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 - module Plugin - module Metadata - class Plugin - def initialize(plugin_class) - @plugin_class = plugin_class - end - - def name - configuration[:name] - end - - def name=(name) - configuration[:name] = name - end - - private - def configuration - @plugin_class.options[:plugin] ||= {} - end - end - end - end -end -------------- next part -------------- HTML����������������������������...Download