Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ulog.Logger.Print -- unused in u-root and dhcp. #23

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ulog/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import "log"
// It puts your information somewhere for safekeeping.
type Logger interface {
Printf(format string, v ...interface{})
Print(v ...interface{})
}

// Log is a Logger that prints to the log package's default logger.
Expand All @@ -27,8 +26,5 @@ type emptyLogger struct{}
// Printf implements Logger.Printf.
func (emptyLogger) Printf(format string, v ...interface{}) {}

// Print implements Logger.Print.
func (emptyLogger) Print(v ...interface{}) {}

// Null is a logger that prints nothing.
var Null Logger = emptyLogger{}
5 changes: 0 additions & 5 deletions ulog/ulogtest/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,3 @@ type Logger struct {
func (tl Logger) Printf(format string, v ...interface{}) {
tl.TB.Logf(format, v...)
}

// Print formats according the default formats for v and prints to a unit test's log.
func (tl Logger) Print(v ...interface{}) {
tl.TB.Log(v...)
}
Loading