mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
b198b994a1
commit
28eba4877b
35 changed files with 35 additions and 73 deletions
|
|
@ -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)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue