Skip to content

Commit

Permalink
fixing unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Mar 17, 2011
1 parent 1d9e3e3 commit 65305fa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion projects/daedalus/dependency_grapher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def close
end

def add_else
message = "invalid \#else for #{@parser.stack_top.class} at line #{@parser.line}"
"invalid \#else for #{@parser.stack_top.class} at line #{@parser.line}"
end

# TODO: remove
Expand Down
2 changes: 1 addition & 1 deletion rakelib/extensions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end

def rbx_build
# rbx-build can run even if prefix is used
rbx = File.expand_path "../bin/rbx-build", File.dirname(__FILE__)
File.expand_path "../bin/rbx-build", File.dirname(__FILE__)
end

def build_extconf(name, opts)
Expand Down
1 change: 0 additions & 1 deletion rakelib/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def git_branch

def compare_git_ver
v = `git version`.scan(/version (\d+).(\d+).(\d+)/).flatten.map { |s| s.to_i }
m = [1, 5, 3]

(v <=> MINIMUM_GIT_VERSION) >= 0
end
Expand Down
1 change: 0 additions & 1 deletion rakelib/instruction_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ def parse_header
last = last[1..-1]
end

arguments = last[1..-1]
unless @produced_extra = @arguments.index(argument)
raise ParseError, "no argument named '#{arg}' at #{@file.lineno}"
end
Expand Down
4 changes: 2 additions & 2 deletions rakelib/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace :release do

issues = []
ol.each do |line|
if m = /([Ff]ixes|[Cc]loses)\s#(\d+)/.match(line)
if /([Ff]ixes|[Cc]loses)\s#(\d+)/.match(line)
issues << line
end
end
Expand Down Expand Up @@ -96,7 +96,7 @@ collection, Just-In-Time compilation, and compatibility with existing C APIs.
fd.puts "##### Bug Fixes\n\n"
ol.each do |line|
unless issues.include?(line)
hash, message = line.split(" ", 2)
message = line.split(" ", 2)[1]
message.gsub!("_", "\\_")
fd.puts "* #{message}"
end
Expand Down

0 comments on commit 65305fa

Please sign in to comment.