Commit 278d7ee5 authored by suyanlong's avatar suyanlong

remove unused code

parent 9124c5ca
Pipeline #8012 canceled with stages
......@@ -38,6 +38,13 @@ GREEN=\033[0;32m
BLUE=\033[0;34m
NC=\033[0m
build: packr
@mkdir -p bin
rm -f imports/imports.go
$(GO) build -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
@mv ./sidecar bin
@printf "${GREEN}Build sidecar successfully!${NC}\n"
.PHONY: test fmt_proto fmt_shell check checkgofmt
help: Makefile
......@@ -67,13 +74,6 @@ install: packr
$(GO) install -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
@printf "${GREEN}Build sidecar successfully${NC}\n"
build: packr
@mkdir -p bin
rm -f imports/imports.go
$(GO) build -ldflags '${GOLDFLAGS}' ./cmd/${APP_NAME}
@mv ./sidecar bin
@printf "${GREEN}Build sidecar successfully!${NC}\n"
installent: packr
cp imports/imports.go.template imports/imports.go
@sed "s?)?$(MODS)@)?" go.mod | tr '@' '\n' > goent.mod
......@@ -122,10 +122,6 @@ fmt: fmt_proto fmt_shell ## go fmt
@find . -name '*.go' -not -path "./vendor/*" | xargs goimports -l -w
@gofumpt -l -w .
all: pb grpc
pb:
@cd model/pb && protoc -I=. \
-I${GOPATH}/src \
......@@ -162,8 +158,6 @@ build-dep:
@go install mvdan.cc/sh/v3/cmd/gosh@latest
@go install mvdan.cc/unparam@latest
@go install github.com/incu6us/goimports-reviser@master
# @apt install clang-format or brew isntall clang-format
# @apt install shellcheck or brew install shellcheck
......
......@@ -94,9 +94,3 @@ func (s *App) Stop() error {
}
return s.manger.Stop()
}
func Asset(err error) {
if err != nil {
panic(err)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment