From b5c08a8e73d1b6a1f5a0f46b1750a8f5baf34d78 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 13 May 2021 12:39:01 +0300 Subject: [PATCH] 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 --- Makefile | 4 +--- misc.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bcee601..c4606e6 100644 --- a/Makefile +++ b/Makefile @@ -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): diff --git a/misc.go b/misc.go index d6fbe2d..1541334 100644 --- a/misc.go +++ b/misc.go @@ -5,5 +5,4 @@ const Prefix = "HTTP_GW" var ( Build = "now" Version = "dev" - Debug = "false" )