File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,3 @@ func UseLogger(logger btclog.Logger) {
31
31
lookout .UseLogger (logger )
32
32
wtserver .UseLogger (logger )
33
33
}
34
-
35
- // logClosure is used to provide a closure over expensive logging operations so
36
- // don't have to be performed when the logging level doesn't warrant it.
37
- type logClosure func () string // nolint:unused
38
-
39
- // String invokes the underlying function and returns the result.
40
- func (c logClosure ) String () string {
41
- return c ()
42
- }
43
-
44
- // newLogClosure returns a new closure over a function that returns a string
45
- // which itself provides a Stringer interface so that it can be used with the
46
- // logging system.
47
- func newLogClosure (c func () string ) logClosure { // nolint:unused
48
- return logClosure (c )
49
- }
You can’t perform that action at this time.
0 commit comments