summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rdoc/generator/darkfish.rb1
-rw-r--r--lib/rdoc/markup/attribute_manager.rb1
-rw-r--r--lib/rdoc/markup/parser.rb2
-rw-r--r--lib/rdoc/parser/c.rb2
-rw-r--r--lib/rdoc/parser/ruby.rb6
-rw-r--r--lib/rdoc/rdoc.rb2
-rw-r--r--lib/rdoc/ruby_lex.rb2
7 files changed, 6 insertions, 10 deletions
diff --git a/lib/rdoc/generator/darkfish.rb b/lib/rdoc/generator/darkfish.rb
index 497be0eb8b..f64641873e 100644
--- a/lib/rdoc/generator/darkfish.rb
+++ b/lib/rdoc/generator/darkfish.rb
@@ -277,7 +277,6 @@ class RDoc::Generator::Darkfish
outfile = @outputdir + file.path
debug_msg " working on %s (%s)" % [ file.full_name, outfile ]
rel_prefix = @outputdir.relative_path_from( outfile.dirname )
- context = binding()
debug_msg " rendering #{outfile}"
self.render_template( template_file, binding(), outfile )
diff --git a/lib/rdoc/markup/attribute_manager.rb b/lib/rdoc/markup/attribute_manager.rb
index 37014b6e9f..e86e7f6812 100644
--- a/lib/rdoc/markup/attribute_manager.rb
+++ b/lib/rdoc/markup/attribute_manager.rb
@@ -265,7 +265,6 @@ class RDoc::Markup::AttributeManager
def split_into_flow
res = []
current_attr = 0
- str = ""
str_len = @str.length
diff --git a/lib/rdoc/markup/parser.rb b/lib/rdoc/markup/parser.rb
index c214f74782..9fba69dc29 100644
--- a/lib/rdoc/markup/parser.rb
+++ b/lib/rdoc/markup/parser.rb
@@ -387,7 +387,7 @@ class RDoc::Markup::Parser
# Skips a token of +token_type+, optionally raising an error.
def skip token_type, error = true
- type, data, = get
+ type, = get
return unless type # end of stream
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb
index f30167aafc..e218298dfe 100644
--- a/lib/rdoc/parser/c.rb
+++ b/lib/rdoc/parser/c.rb
@@ -284,7 +284,6 @@ class RDoc::Parser::C < RDoc::Parser
\s*(\([^)]*\))([^;]|$))"xm
comment = $1
body_text = $2
- params = $3
remove_private_comments comment if comment
@@ -304,7 +303,6 @@ class RDoc::Parser::C < RDoc::Parser
find_modifiers comment, meth_obj if comment
- #meth_obj.params = params
meth_obj.start_collecting_tokens
tk = RDoc::RubyToken::Token.new nil, 1, 1
tk.set_text body_text
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb
index bfb118c416..2874c47a20 100644
--- a/lib/rdoc/parser/ruby.rb
+++ b/lib/rdoc/parser/ruby.rb
@@ -452,7 +452,8 @@ class RDoc::Parser::Ruby < RDoc::Parser
def parse_attr_accessor(context, single, tk, comment)
args = parse_symbol_arg
- read = get_tkread
+ get_tkread
+
rw = "?"
# TODO If nodoc is given, don't document any of them
@@ -758,7 +759,8 @@ class RDoc::Parser::Ruby < RDoc::Parser
def parse_meta_attr(context, single, tk, comment)
args = parse_symbol_arg
- read = get_tkread
+ get_tkread
+
rw = "?"
# If nodoc is given, don't document any of them
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index 3c08b5e4c1..8771b408d9 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -383,8 +383,6 @@ The internal error was:
@generator = gen_klass.for @options
- pwd = Dir.pwd
-
Dir.chdir @options.op_dir do
begin
self.class.current = self
diff --git a/lib/rdoc/ruby_lex.rb b/lib/rdoc/ruby_lex.rb
index ab5f32ba42..fe289fb1a2 100644
--- a/lib/rdoc/ruby_lex.rb
+++ b/lib/rdoc/ruby_lex.rb
@@ -674,7 +674,7 @@ class RDoc::RubyLex
tk_c = TkLPAREN
end
@indent_stack.push tk_c
- tk = Token(tk_c)
+ Token(tk_c)
end
@OP.def_rule("[]", proc{|op, io| @lex_state == EXPR_FNAME}) do