diff options
Diffstat (limited to 'src/pkg/path/path.go')
-rw-r--r-- | src/pkg/path/path.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pkg/path/path.go b/src/pkg/path/path.go index ffc6c6920..49ea25db6 100644 --- a/src/pkg/path/path.go +++ b/src/pkg/path/path.go @@ -125,7 +125,6 @@ func Join(dir, file string) string { // in the final slash-separated element of path; // it is empty if there is no dot. func Ext(path string) string { - dot := -1; for i := len(path)-1; i >= 0 && path[i] != '/'; i-- { if path[i] == '.' { return path[i:len(path)]; |