Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Nov 20, 2011
1 parent 21f5ad2 commit c0cc417
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions lib/cucumber/language_support/language_methods.rb
Expand Up @@ -4,10 +4,6 @@
module Cucumber
module LanguageSupport
module LanguageMethods
def create_step_match(step_definition, step_name, name_to_report, step_arguments)
StepMatch.new(step_definition, step_name, name_to_report, step_arguments)
end

def around(scenario)
execute_around(scenario) do
yield
Expand Down
4 changes: 0 additions & 4 deletions lib/cucumber/py_support/py_language.rb
Expand Up @@ -24,10 +24,6 @@ def load_code_file(py_file)
def alias_adverbs(adverbs)
end

def step_definitions_for(py_file)
mod = import(py_file)
end

def snippet_text(code_keyword, step_name, multiline_arg_class)
"python snippet: #{code_keyword}, #{step_name}"
end
Expand Down
14 changes: 0 additions & 14 deletions lib/cucumber/rb_support/rb_language.rb
Expand Up @@ -65,20 +65,6 @@ def enable_rspec_expectations_if_available
end
end

# Gets called for each file under features (or whatever is overridden
# with --require).
def step_definitions_for(rb_file) # Looks Unused - Delete?
begin
require rb_file # This will cause self.add_step_definition and self.add_hook to be called from RbDsl
step_definitions
rescue LoadError => e
e.message << "\nFailed to load #{code_file}"
raise e
ensure
@step_definitions = nil
end
end

def step_matches(name_to_match, name_to_format)
@step_definitions.map do |step_definition|
if(arguments = step_definition.arguments_from(name_to_match))
Expand Down

0 comments on commit c0cc417

Please sign in to comment.