Skip to content

Commit

Permalink
removed another unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
SidOfc committed Jun 1, 2016
1 parent 6c6fe9e commit 5406dce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions lib/browserino/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def to_h
end

def method_missing(method_sym, *args, &block)
name = method_sym.to_s.tr('?', '')
name = method_sym.to_s.tr('?', '')
invertable case type_id(method_sym)
when :system then correct_system?(name, *args)
Expand Down
5 changes: 0 additions & 5 deletions lib/browserino/core/questions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ def bot?(name = nil)
invertable is_bot && is_name
end

def console?(name = nil)
arg = (name.nil? ? console_name : name).to_s.to_sym
invertable Core::SUPPORTED[:consoles].include?(arg)
end

def search_engine?(name = nil)
arg = (name.nil? ? search_engine_name : name).to_s.to_sym
invertable Core::SUPPORTED[:search_engines].include?(arg)
Expand Down

0 comments on commit 5406dce

Please sign in to comment.