Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Oct 13, 2024
1 parent 6829685 commit 40aca0d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions lib/null_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ def info(message)
def error(message)
end

def debug(message)
end

def warn(message)
end
end
5 changes: 0 additions & 5 deletions lib/stdout_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ def error(message)
puts "\e[31m#{message}\e[0m"
end

def debug(message)
# Blue text by using ANSI escape code
puts "\e[34m#{message}\e[0m"
end

def warn(message)
# Yellow text by using ANSI escape code
puts "\e[33m#{message}\e[0m"
Expand Down
7 changes: 0 additions & 7 deletions spec/lib/stdout_logger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
it { expect { error }.to output(/\e\[31m/).to_stdout }
end

describe '#debug' do
subject(:debug) { logger.debug(message) }

it { expect { debug }.to output(/#{message}/).to_stdout }
it { expect { debug }.to output(/\e\[34m/).to_stdout }
end

describe '#warn' do
subject(:warn) { logger.warn(message) }

Expand Down
4 changes: 0 additions & 4 deletions spec/support/memory_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ def warn(message)
synchronize { @warn_messages << message }
end

def debug(message)
synchronize { @debug_messages << message }
end

private

def synchronize(&)
Expand Down

0 comments on commit 40aca0d

Please sign in to comment.