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 @@ -27,19 +27,3 @@ func DisableLog() {
27
27
func UseLogger (logger btclog.Logger ) {
28
28
log = logger
29
29
}
30
-
31
- // logClosure is used to provide a closure over expensive logging operations so
32
- // don't have to be performed when the logging level doesn't warrant it.
33
- type logClosure func () string // nolint:unused
34
-
35
- // String invokes the underlying function and returns the result.
36
- func (c logClosure ) String () string {
37
- return c ()
38
- }
39
-
40
- // newLogClosure returns a new closure over a function that returns a string
41
- // which itself provides a Stringer interface so that it can be used with the
42
- // logging system.
43
- func newLogClosure (c func () string ) logClosure { // nolint:unused
44
- return logClosure (c )
45
- }
You can’t perform that action at this time.
0 commit comments