fix "declared and not used" errors in non-test code.

R=r
DELTA=112  (6 added, 57 deleted, 49 changed)
OCL=34610
CL=34610
This commit is contained in:
Russ Cox 2009-09-14 17:20:29 -07:00
parent b198b994a1
commit 28eba4877b
35 changed files with 35 additions and 73 deletions

View file

@ -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)];