[cairo] [PATCH 2/7] Remove unused variables
Nikolai Weibull
now at bitwi.se
Fri Sep 16 01:32:40 PDT 2011
---
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
More information about the cairo
mailing list