diff options
| author | Russ Cox <rsc@golang.org> | 2009-09-14 17:20:29 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-09-14 17:20:29 -0700 |
| commit | 28eba4877b6e51830632136f0eca8ca6d39d6179 (patch) | |
| tree | e2cd321c6ad74a89d52d68181a949bc8bfd76198 /src/pkg/path/path.go | |
| parent | b198b994a10feab2597ea938f7d616266bc99c92 (diff) | |
| download | go-28eba4877b6e51830632136f0eca8ca6d39d6179.tar.xz | |
fix "declared and not used" errors in non-test code.
R=r
DELTA=112 (6 added, 57 deleted, 49 changed)
OCL=34610
CL=34610
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 ffc6c6920b..49ea25db67 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)]; |
