Permalink
Browse files

Remove dumb guard.

  • Loading branch information...
1 parent 1c42eb1 commit dbc88cfdd0715d15f682f6dc7ce991187c69dce8 Gabe Berke-Williams committed Mar 7, 2012
Showing with 0 additions and 13 deletions.
  1. +0 −7 lib/pidgin2adium/parsers/basic_parser.rb
  2. +0 −6 spec/pidgin2adium/basic_parser_spec.rb
@@ -59,12 +59,6 @@ def initialize(src_path, user_aliases, force_conversion = false)
# This method returns a LogFile instance, or false if an error occurred.
def parse
- # Prevent parse from being called directly from BasicParser, since
- # it uses subclassing magic.
- if self.class == BasicParser
- Pidgin2Adium.warn("Please don't call parse directly from BasicParser. Use a subclass :)")
- return false
- end
return false unless @log_file_is_valid
cleaned_file_content = cleanup(@file_content).split("\n")
@@ -154,7 +148,6 @@ def pre_parse!
:month => parsed_time.mon,
:day => parsed_time.mday}
rescue ArgumentError
- # Couldn't parse the date
Pidgin2Adium.warn("#{@src_path}: couldn't parse the date in the first line.")
@basic_time_info = nil
end
@@ -1,12 +1,6 @@
require 'spec_helper'
describe Pidgin2Adium::BasicParser do
- describe "#parse" do
- it "returns false" do
- Pidgin2Adium::BasicParser.new(create_chat_file, '').parse.should be_false
- end
- end
-
describe "#create_adium_time" do
before do
@bp = Pidgin2Adium::BasicParser.new(create_chat_file, '')

0 comments on commit dbc88cf

Please sign in to comment.