From fa25593b151851537e388f0bf1703fffa5c6af84 Mon Sep 17 00:00:00 2001 From: Fabrizio Cirelli Date: Mon, 9 Mar 2020 14:45:58 +0100 Subject: [PATCH] Removed useless files --- versions_go1_14.go | 10 ---------- versions_others.go | 10 ---------- 2 files changed, 20 deletions(-) delete mode 100644 versions_go1_14.go delete mode 100644 versions_others.go diff --git a/versions_go1_14.go b/versions_go1_14.go deleted file mode 100644 index 8db3360..0000000 --- a/versions_go1_14.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build go1.14 - -package logrus - -import "runtime" - -// funcName returns the function name that logrus calls -func funcName(pcs []uintptr) string { - return runtime.FuncForPC(pcs[0]).Name() -} diff --git a/versions_others.go b/versions_others.go deleted file mode 100644 index 8b3a682..0000000 --- a/versions_others.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build !go1.14 - -package logrus - -import "runtime" - -// funcName returns the function name that logrus calls -func funcName(pcs []uintptr) string { - return runtime.FuncForPC(pcs[1]).Name() -}