From 3df8fc97178502cf3bd4fdbff3b763f33cf64330 Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 20 Sep 2024 14:08:12 +0100 Subject: [PATCH] remove unused global variable --- internal/log/level.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/log/level.go b/internal/log/level.go index 7299d6609..be45e2964 100644 --- a/internal/log/level.go +++ b/internal/log/level.go @@ -32,16 +32,6 @@ const ( ALL LEVEL = ^LEVEL(0) ) -// available logging level outputs. -var levels = [int(ALL) + 1]string{ - TRACE: "TRACE", - DEBUG: "DEBUG", - INFO: "INFO", - WARN: "WARN", - ERROR: "ERROR", - PANIC: "PANIC", -} - // CanLog returns whether an incoming log of 'lvl' can be logged against receiving level. func (loglvl LEVEL) CanLog(lvl LEVEL) bool { return loglvl > lvl