From 176d933c79fffed3fa002cd90fe54a1e2f24fe76 Mon Sep 17 00:00:00 2001 From: Markus Zimmermann Date: Sun, 18 Oct 2015 12:21:46 +0200 Subject: [PATCH] Remove unneeded build context --- main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.go b/main.go index ed3df3f..e46c72c 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,6 @@ package main import ( "flag" "fmt" - "go/build" "os" "regexp" "runtime" @@ -146,11 +145,6 @@ func parseFlags(checker *errcheck.Checker, args []string) ([]string, int) { } checker.Ignore = ignore - ctx := gotool.Context{ - BuildContext: build.Default, - } - ctx.BuildContext.BuildTags = tags - // ImportPaths normalizes paths and expands '...' return gotool.ImportPaths(flags.Args()), exitCodeOk }