Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
go
Commits
20011bc8
Commit
20011bc8
authored
15 years ago
by
Russ Cox
Browse files
Options
Download
Email Patches
Plain Diff
unused imports
R=r OCL=34731 CL=34731
parent
1401151a
Changes
83
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
50 deletions
+20
-50
src/cmd/ebnflint/ebnflint.go
src/cmd/ebnflint/ebnflint.go
+1
-2
src/cmd/godoc/godoc.go
src/cmd/godoc/godoc.go
+0
-2
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/gofmt.go
+0
-2
src/cmd/gotest/gotest
src/cmd/gotest/gotest
+17
-15
src/pkg/archive/tar/reader_test.go
src/pkg/archive/tar/reader_test.go
+0
-1
src/pkg/archive/tar/writer_test.go
src/pkg/archive/tar/writer_test.go
+0
-3
src/pkg/compress/flate/flate_test.go
src/pkg/compress/flate/flate_test.go
+0
-4
src/pkg/compress/gzip/gunzip_test.go
src/pkg/compress/gzip/gunzip_test.go
+0
-1
src/pkg/crypto/aes/aes_test.go
src/pkg/crypto/aes/aes_test.go
+0
-1
src/pkg/crypto/block/cbc_aes_test.go
src/pkg/crypto/block/cbc_aes_test.go
+0
-1
src/pkg/crypto/block/cfb_aes_test.go
src/pkg/crypto/block/cfb_aes_test.go
+0
-1
src/pkg/crypto/block/cmac.go
src/pkg/crypto/block/cmac.go
+1
-4
src/pkg/crypto/block/ctr_aes_test.go
src/pkg/crypto/block/ctr_aes_test.go
+0
-1
src/pkg/crypto/block/ecb_aes_test.go
src/pkg/crypto/block/ecb_aes_test.go
+0
-1
src/pkg/crypto/block/ofb_aes_test.go
src/pkg/crypto/block/ofb_aes_test.go
+0
-1
src/pkg/datafmt/datafmt.go
src/pkg/datafmt/datafmt.go
+0
-3
src/pkg/datafmt/datafmt_test.go
src/pkg/datafmt/datafmt_test.go
+0
-1
src/pkg/datafmt/parser.go
src/pkg/datafmt/parser.go
+0
-1
src/pkg/debug/dwarf/entry.go
src/pkg/debug/dwarf/entry.go
+1
-4
src/pkg/debug/dwarf/open.go
src/pkg/debug/dwarf/open.go
+0
-1
No files found.
src/cmd/ebnflint/ebnflint.go
View file @
20011bc8
...
...
@@ -13,7 +13,6 @@ import (
"io"
;
"os"
;
"path"
;
"sort"
;
"strings"
;
)
...
...
@@ -47,7 +46,7 @@ func extractEBNF(src []byte) []byte {
i
+=
len
(
open
);
// write as many newlines as found in the excluded text
// to maintain correct line numbers in error messages
// to maintain correct line numbers in error messages
for
_
,
ch
:=
range
src
[
0
:
i
]
{
if
ch
==
'\n'
{
buf
.
WriteByte
(
'\n'
);
...
...
This diff is collapsed.
Click to expand it.
src/cmd/godoc/godoc.go
View file @
20011bc8
...
...
@@ -40,13 +40,11 @@ import (
"http"
;
"io"
;
"log"
;
"net"
;
"os"
;
pathutil
"path"
;
"sort"
;
"strings"
;
"sync"
;
"syscall"
;
"template"
;
"time"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/cmd/gofmt/gofmt.go
View file @
20011bc8
...
...
@@ -11,10 +11,8 @@ import (
"go/parser"
;
"go/printer"
;
"go/scanner"
;
"io"
;
"os"
;
pathutil
"path"
;
"sort"
;
"strings"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/cmd/gotest/gotest
View file @
20011bc8
...
...
@@ -86,11 +86,23 @@ MAKELEVEL=
importpath
=
$(
make
-s
importpath
)
{
# test functions are named TestFoo
# the grep -v eliminates methods and other special names
# that have multiple dots.
pattern
=
'Test([^a-z].*)?'
tests
=
$(
6nm
-s
_test/
$importpath
.a
$xofile
| egrep
' T .*·'
$pattern
'$'
|
grep
-v
'·.*[.·]'
|
sed
's/.* //; s/·/./'
)
if
[
"x
$tests
"
=
x
]
;
then
echo
'gotest: error: no tests matching '
$pattern
in
_test/
$importpath
.a
$xofile
1>&2
exit
2
fi
# package spec
echo
'package main'
echo
# imports
echo
'import "'
$importpath
'"'
if
echo
"
$tests
"
| egrep
-v
'_test\.'
>
/dev/null
;
then
echo
'import "'
$importpath
'"'
fi
if
$havex
;
then
echo
'import "./_xtest_"'
fi
...
...
@@ -98,20 +110,10 @@ importpath=$(make -s importpath)
# test array
echo
echo
'var tests = []testing.Test {'
# test functions are named TestFoo
# the grep -v eliminates methods and other special names
# that have multiple dots.
pattern
=
'Test([^a-z].*)?'
tests
=
$(
6nm
-s
_test/
$importpath
.a
$xofile
| egrep
' T .*·'
$pattern
'$'
|
grep
-v
'·.*[.·]'
|
sed
's/.* //; s/·/./'
)
if
[
"x
$tests
"
=
x
]
;
then
echo
'gotest: warning: no tests matching '
$pattern
in
_test/
$importpath
.a
$xofile
1>&2
else
for
i
in
$tests
do
echo
' testing.Test{ "'
$i
'", '
$i
' },'
done
fi
for
i
in
$tests
do
echo
' testing.Test{ "'
$i
'", '
$i
' },'
done
echo
'}'
# body
echo
...
...
This diff is collapsed.
Click to expand it.
src/pkg/archive/tar/reader_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package tar
import
(
"bytes"
;
"fmt"
;
"io"
;
"os"
;
"reflect"
;
...
...
This diff is collapsed.
Click to expand it.
src/pkg/archive/tar/writer_test.go
View file @
20011bc8
...
...
@@ -8,9 +8,6 @@ import (
"bytes"
;
"fmt"
;
"io"
;
"os"
;
"reflect"
;
"strings"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/compress/flate/flate_test.go
View file @
20011bc8
...
...
@@ -10,11 +10,7 @@ package flate
import
(
"bytes"
;
"bufio"
;
"io"
;
"os"
;
"reflect"
;
"strconv"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/compress/gzip/gunzip_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package gzip
import
(
"bytes"
;
"fmt"
;
"io"
;
"os"
;
"testing"
;
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/aes/aes_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
aes
import
(
"fmt"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/block/cbc_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/block/cfb_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/block/cmac.go
View file @
20011bc8
...
...
@@ -7,10 +7,7 @@
package
block
import
(
"io"
;
"os"
;
)
import
"os"
const
(
// minimal irreducible polynomial of degree b
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/block/ctr_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/block/ecb_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/crypto/block/ofb_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/datafmt/datafmt.go
View file @
20011bc8
...
...
@@ -203,15 +203,12 @@ package datafmt
import
(
"bytes"
;
"container/vector"
;
"fmt"
;
"go/token"
;
"io"
;
"os"
;
"reflect"
;
"runtime"
;
"strconv"
;
"strings"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/datafmt/datafmt_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package datafmt
import
(
"fmt"
;
"os"
;
"strings"
;
"testing"
;
)
...
...
This diff is collapsed.
Click to expand it.
src/pkg/datafmt/parser.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package datafmt
import
(
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/token"
;
"os"
;
...
...
This diff is collapsed.
Click to expand it.
src/pkg/debug/dwarf/entry.go
View file @
20011bc8
...
...
@@ -10,10 +10,7 @@
package
dwarf
import
(
"os"
;
"strconv"
;
)
import
"os"
// a single entry's description: a sequence of attributes
type
abbrev
struct
{
...
...
This diff is collapsed.
Click to expand it.
src/pkg/debug/dwarf/open.go
View file @
20011bc8
...
...
@@ -9,7 +9,6 @@ package dwarf
import
(
"debug/binary"
;
"fmt"
;
"os"
;
)
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment