From c80ea9640c849a33d15a30db2f5df7930626f84c Mon Sep 17 00:00:00 2001 From: David Christofas Date: Mon, 3 Feb 2020 17:07:12 +0100 Subject: [PATCH] remove unused method --- log/log.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/log/log.go b/log/log.go index 83f31d8c6..2fd8fdb23 100644 --- a/log/log.go +++ b/log/log.go @@ -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 "" -}