[PATCH 2/7] Remove unused variables

Nikolai Weibull <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
---
 lib/cairo.rb       |    2 +-
 lib/cairo/color.rb |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/cairo.rb b/lib/cairo.rb
index 3f7f687..656fd79 100644
--- a/lib/cairo.rb
+++ b/lib/cairo.rb
@@ -40,7 +40,7 @@ require 'cairo/color'
 require 'cairo/paper'
 
 begin
-  major, minor, micro, = RUBY_VERSION.split(/\./)
+  major, minor, _ = RUBY_VERSION.split(/\./)
   require "#{major}.#{minor}/cairo.so"
 rescue LoadError
   require 'cairo.so'
diff --git a/lib/cairo/color.rb b/lib/cairo/color.rb
index 7d54e83..e14f0f1 100644
--- a/lib/cairo/color.rb
+++ b/lib/cairo/color.rb
@@ -11,7 +11,7 @@ module Cairo
         when :hsv, :hsva
           HSV.new(*value[1..-1])
         else
-          type, *value = value if [:rgb, :rgba].include?(value.first)
+          _, *value = value if [:rgb, :rgba].include?(value.first)
           RGB.new(*value)
         end
       when /\A#/ #
-- 
1.7.5.1

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.