remove unused method

This commit is contained in:
David Christofas
2020-02-03 17:07:12 +01:00
parent 02e95f0d6a
commit c80ea9640c

View File

@@ -3,7 +3,6 @@ package log
import (
"fmt"
"os"
"runtime"
"strings"
"time"
@@ -170,15 +169,3 @@ func (mz microZerolog) log(level string, msg string) {
os.Exit(1)
}
}
// parentCaller tries to detect which log method had been invoked.
func parentCaller() string {
pc, _, _, ok := runtime.Caller(4)
fn := runtime.FuncForPC(pc)
if ok && fn != nil {
return fn.Name()
}
return ""
}