misc: drop unused Debug variable

Fix deadcode warning:
misc.go:8:2                   deadcode  `Debug` is unused

We have logging options and this one is not really needed.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2021-05-13 12:39:01 +03:00 committed by Stanislav Bogatyrev
parent 73bd26bc12
commit b5c08a8e73
2 changed files with 1 additions and 4 deletions

View file

@ -3,7 +3,6 @@
REPO ?= $(shell go list -m)
VERSION ?= $(shell git describe --tags --dirty --always)
BUILD ?= $(shell date -u --iso=seconds)
DEBUG ?= false
HUB_IMAGE ?= nspccdev/neofs-http-gw
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
@ -24,8 +23,7 @@ $(BINS): $(DIRS) dep
GO111MODULE=on \
go build -v -trimpath \
-ldflags "-X main.Version=$(VERSION) \
-X main.Build=$(BUILD) \
-X main.Debug=$(DEBUG)" \
-X main.Build=$(BUILD)" \
-o $@ ./
$(DIRS):

View file

@ -5,5 +5,4 @@ const Prefix = "HTTP_GW"
var (
Build = "now"
Version = "dev"
Debug = "false"
)