Skip to content

Commit

Permalink
Remove ulog.Logger.Print -- unused in u-root and dhcp.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Feb 8, 2024
1 parent e16dfc2 commit 4b6aae0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
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...)
}

0 comments on commit 4b6aae0

Please sign in to comment.