From 9e3aa4d16d6466a1e9bf87410b12f2c1af3696f0 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Thu, 25 Aug 2022 16:53:48 +0800 Subject: [PATCH] chore: remove broken gitea-format-imports (#20952) --- build/gitea-format-imports.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 build/gitea-format-imports.go diff --git a/build/gitea-format-imports.go b/build/gitea-format-imports.go deleted file mode 100644 index c685ae68ee..0000000000 --- a/build/gitea-format-imports.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2021 The Gitea Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - -//go:build ignore - -package main - -import ( - "log" - "os" - - "code.gitea.io/gitea/build/codeformat" -) - -func main() { - if len(os.Args) <= 1 { - log.Fatalf("Usage: gitea-format-imports [files...]") - } - - for _, file := range os.Args[1:] { - if err := codeformat.FormatGoImports(file); err != nil { - log.Fatalf("can not format file %s, err=%v", file, err) - } - } -}