Remove dead code from parse.go (google/go-cloud#48)

This commit is contained in:
Chris Lewis
2018-05-30 18:58:09 -07:00
committed by Ross Light
parent e9a61ba66b
commit 3e60790b34

View File

@@ -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
}