diff --git a/internal/goose/parse.go b/internal/goose/parse.go index a6fc135..5c5742d 100644 --- a/internal/goose/parse.go +++ b/internal/goose/parse.go @@ -618,14 +618,3 @@ func isGooseImport(path string) bool { } return path == "github.com/google/go-cloud/goose" } - -// paramIndex returns the index of the parameter with the given name, or -// -1 if no such parameter exists. -func paramIndex(params *types.Tuple, name string) int { - for i := 0; i < params.Len(); i++ { - if params.At(i).Name() == name { - return i - } - } - return -1 -}