]> Cypherpunks repositories - gostls13.git/commitdiff
unused imports
authorRuss Cox <rsc@golang.org>
Thu, 17 Sep 2009 17:27:04 +0000 (10:27 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 17 Sep 2009 17:27:04 +0000 (10:27 -0700)
R=r
OCL=34731
CL=34731

83 files changed:
src/cmd/ebnflint/ebnflint.go
src/cmd/godoc/godoc.go
src/cmd/gofmt/gofmt.go
src/cmd/gotest/gotest
src/pkg/archive/tar/reader_test.go
src/pkg/archive/tar/writer_test.go
src/pkg/compress/flate/flate_test.go
src/pkg/compress/gzip/gunzip_test.go
src/pkg/crypto/aes/aes_test.go
src/pkg/crypto/block/cbc_aes_test.go
src/pkg/crypto/block/cfb_aes_test.go
src/pkg/crypto/block/cmac.go
src/pkg/crypto/block/ctr_aes_test.go
src/pkg/crypto/block/ecb_aes_test.go
src/pkg/crypto/block/ofb_aes_test.go
src/pkg/datafmt/datafmt.go
src/pkg/datafmt/datafmt_test.go
src/pkg/datafmt/parser.go
src/pkg/debug/dwarf/entry.go
src/pkg/debug/dwarf/open.go
src/pkg/debug/gosym/pclntab.go
src/pkg/debug/gosym/pclntab_test.go
src/pkg/debug/proc/proc.go
src/pkg/ebnf/ebnf.go
src/pkg/ebnf/parser.go
src/pkg/exvar/exvar.go
src/pkg/exvar/exvar_test.go
src/pkg/flag/flag_test.go
src/pkg/fmt/fmt_test.go
src/pkg/go/ast/scope.go
src/pkg/go/doc/comment.go
src/pkg/go/doc/doc.go
src/pkg/go/parser/interface.go
src/pkg/go/parser/parser.go
src/pkg/go/parser/parser_test.go
src/pkg/go/printer/printer_test.go
src/pkg/gob/decoder.go
src/pkg/gob/encode.go
src/pkg/gob/encoder_test.go
src/pkg/gob/type.go
src/pkg/gob/type_test.go
src/pkg/http/client.go
src/pkg/http/client_test.go
src/pkg/http/request_test.go
src/pkg/io/io.go
src/pkg/json/parse.go
src/pkg/net/dialgoogle_test.go
src/pkg/net/dnsclient.go
src/pkg/net/dnsconfig.go
src/pkg/net/net_test.go
src/pkg/net/port.go
src/pkg/net/server_test.go
src/pkg/net/timeout_test.go
src/pkg/os/proc.go
src/pkg/reflect/type.go
src/pkg/rpc/client.go
src/pkg/rpc/debug.go
src/pkg/rpc/server_test.go
src/pkg/strconv/atof_test.go
src/pkg/strconv/atoi_test.go
src/pkg/strconv/decimal_test.go
src/pkg/strconv/fp_test.go
src/pkg/strconv/itoa_test.go
src/pkg/syscall/syscall.go
src/pkg/template/format.go
src/pkg/template/template_test.go
src/pkg/time/sleep.go
src/pkg/time/tick.go
src/pkg/utf8/utf8_test.go
test/bench/binary-tree-freelist.go
test/bench/binary-tree.go
test/bigalg.go
test/fixedbugs/bug106.dir/bug1.go
test/fixedbugs/bug107.go
test/fixedbugs/bug129.go
test/fixedbugs/bug133.dir/bug2.go
test/fixedbugs/bug163.go
test/fixedbugs/bug177.go
test/fixedbugs/bug188.go
test/fixedbugs/bug191.dir/a.go
test/fixedbugs/bug191.dir/b.go
test/fixedbugs/bug191.go
test/initsyscall.go

index 76281597270fc9a3d6cd75ce743b4ab4cffbe916..606961e7d816d6b0f146d0c69f885c6f17bb001e 100644 (file)
@@ -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');
index 36e66a2110c54d7a2829897c47d5b06580ba951e..5164c39c2ddedeba37bddb08cb9f635af72c7817 100644 (file)
@@ -40,13 +40,11 @@ import (
        "http";
        "io";
        "log";
-       "net";
        "os";
        pathutil "path";
        "sort";
        "strings";
        "sync";
-       "syscall";
        "template";
        "time";
 )
index 53fe46d24cc4233863e48dce3ff7dcfcb2b3b6f2..9442957a9012ce42fcb35018f2e4fd04b4ac0e86 100644 (file)
@@ -11,10 +11,8 @@ import (
        "go/parser";
        "go/printer";
        "go/scanner";
-       "io";
        "os";
        pathutil "path";
-       "sort";
        "strings";
 )
 
index e07932b520f9bc68858fa231cfaa7166a83bfbec..5ee3eb0a868206ace71a7236e9f0faad12a1842b 100755 (executable)
@@ -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
index 4e546cebdd39c165dc8b4fbd5c844be22de8a40c..85bfef170868821595aa1024bbc31819c19e3be5 100644 (file)
@@ -6,7 +6,6 @@ package tar
 
 import (
        "bytes";
-       "fmt";
        "io";
        "os";
        "reflect";
index 40b78bb3226311add26b7323825131407d5a89fd..69f069ff3e9762c6578a61cb96affb8d64ac9402 100644 (file)
@@ -8,9 +8,6 @@ import (
        "bytes";
        "fmt";
        "io";
-       "os";
-       "reflect";
-       "strings";
        "testing";
 )
 
index 01d875c0a1dd3aa1dd0236287a92e783feefb8b8..2d1255f3ca09b4835c64bbcdb7b6cb56e035f5ac 100644 (file)
@@ -10,11 +10,7 @@ package flate
 
 import (
        "bytes";
-       "bufio";
-       "io";
-       "os";
        "reflect";
-       "strconv";
        "testing";
 )
 
index aef79244dc9126bb46c7a0166972e531e220b03d..99e9a75d641b62b60e5057c2d9b758a5287e3370 100644 (file)
@@ -6,7 +6,6 @@ package gzip
 
 import (
        "bytes";
-       "fmt";
        "io";
        "os";
        "testing";
index 95e43f1173fec0cc54ea437ac1bbcc5751a08e78..b2e0c7bb56364180018981c5c63cafcf6cbb8421 100644 (file)
@@ -5,7 +5,6 @@
 package aes
 
 import (
-       "fmt";
        "testing";
 )
 
index 8f7d5b4421cd6343025f598b8e656aa76099a647..23cf21a5f685c7d2cb7e367c4c806b375c2abf1c 100644 (file)
@@ -14,7 +14,6 @@ import (
        "bytes";
        "crypto/aes";
        "io";
-       "os";
        "testing";
 )
 
index ce8627ed027c1fc37a60606550d206d049751e7f..6e948d33de10302646ce80c37c7954a25fe5bbd9 100644 (file)
@@ -14,7 +14,6 @@ import (
        "bytes";
        "crypto/aes";
        "io";
-       "os";
        "testing";
 )
 
index b567f0e56bfa17a9b000723adc4be90c106b09d6..112dcc23846b49ac8abd966716600201cef9e733 100644 (file)
@@ -7,10 +7,7 @@
 
 package block
 
-import (
-       "io";
-       "os";
-)
+import "os"
 
 const (
        // minimal irreducible polynomial of degree b
index d9c9c4b2ffe9bef380efe8bca2bc38e407abbdc4..2e800fe163740863d5c30699b4cce96f758e4230 100644 (file)
@@ -14,7 +14,6 @@ import (
        "bytes";
        "crypto/aes";
        "io";
-       "os";
        "testing";
 )
 
index 65f093d84b0e6fa351951431ce668f7e829d49aa..f823d2fe2b09e12b40068594acbd7fed974c4e94 100644 (file)
@@ -14,7 +14,6 @@ import (
        "bytes";
        "crypto/aes";
        "io";
-       "os";
        "testing";
 )
 
index d9a10927950da558abaf5bd71ed5ea5a31e025b3..85d32bd724532acc865b4a7b36fdb4dadcea4664 100644 (file)
@@ -14,7 +14,6 @@ import (
        "bytes";
        "crypto/aes";
        "io";
-       "os";
        "testing";
 )
 
index 8918d5e97fbd99548a9d7976886a439165ea0b9d..7f245694e4c05ef1a32af21c2297465211140cdc 100644 (file)
@@ -203,15 +203,12 @@ package datafmt
 
 import (
        "bytes";
-       "container/vector";
        "fmt";
        "go/token";
        "io";
        "os";
        "reflect";
        "runtime";
-       "strconv";
-       "strings";
 )
 
 
index e1355dd36cc828f7d9eab04c35932229fac435db..949f3551f553ac7ddb3ae94cfbc1f3e36cec9cb7 100644 (file)
@@ -6,7 +6,6 @@ package datafmt
 
 import (
        "fmt";
-       "os";
        "strings";
        "testing";
 )
index d1fa3f2cbbbf6650aa226fe37be83de1e7f07eab..545899132167177bc24f23b5d8d11c9c6b56987e 100644 (file)
@@ -6,7 +6,6 @@ package datafmt
 
 import (
        "container/vector";
-       "fmt";
        "go/scanner";
        "go/token";
        "os";
index 98a8b2ea04365977981b0372e690890c7afae98c..986e098a80343b40ad518534b33cb376395d469f 100644 (file)
 
 package dwarf
 
-import (
-       "os";
-       "strconv";
-)
+import "os"
 
 // a single entry's description: a sequence of attributes
 type abbrev struct {
index e252ce5f4e88d1e28059f21b573a9bb556d1ac1e..15d0b6ea6b2860dbe5d8465beeca4be5d75dccb5 100644 (file)
@@ -9,7 +9,6 @@ package dwarf
 
 import (
        "debug/binary";
-       "fmt";
        "os";
 )
 
index b687cccf267a636336031eee6b56aa537de3e85f..ee6359f9dcd52ba1d4b5da0560570fb0bda43544 100644 (file)
@@ -8,10 +8,7 @@
 
 package gosym
 
-import (
-       "debug/binary";
-       "io";
-)
+import "debug/binary"
 
 type LineTable struct {
        Data []byte;
index 9a32d050cee7aa0d3562353669289ed35f83bf49..4345112ccbd90aa5cb53a8f5f667ce6c97b66188 100644 (file)
@@ -6,8 +6,6 @@ package gosym
 
 import (
        "debug/elf";
-       "exec";
-       "io";
        "os";
        "testing";
        "syscall";
index e8c62f22b5ed53f8b930f79b6fc664468c27fdcf..c67e02fea6503a568b775d61e7c6e737264cfc38 100644 (file)
@@ -13,15 +13,15 @@ package proc
 // and proc_darwin.go do, because deps.bash only looks at
 // this file.
 import (
-       "container/vector";
-       "fmt";
-       "io";
+       "container/vector";
+       "fmt";
+       "io";
        "os";
-       "runtime";
+       "runtime";
        "strconv";
-       "strings";
-       "sync";
-       "syscall";
+       "strings";
+       "sync";
+       "syscall";
 )
 
 type Word uint64
index f71ccc72b0eb0849b7fd6e733749feac9615fc76..ad630fca523e6b6a67e482e3e6e85b32dc8fddb0 100644 (file)
@@ -24,12 +24,9 @@ package ebnf
 
 import (
        "container/vector";
-       "fmt";
        "go/scanner";
        "go/token";
        "os";
-       "strconv";
-       "strings";
        "unicode";
        "utf8";
 )
index 84afd382a85177e92b6dcce8983ebec02b1f8e1c..a3fbe6f605dee5c056b86673a7e05d6ecf3127f3 100644 (file)
@@ -6,14 +6,10 @@ package ebnf
 
 import (
        "container/vector";
-       "fmt";
        "go/scanner";
        "go/token";
        "os";
        "strconv";
-       "strings";
-       "unicode";
-       "utf8";
 )
 
 
index abeeea725803b1aa0bc7751188759bbc76f79cc9..0765a80eea86f1374fcfb480934f2f5a08cc18fd 100644 (file)
@@ -11,7 +11,6 @@ import (
        "bytes";
        "fmt";
        "http";
-       "io";
        "log";
        "strconv";
        "sync";
index 34b87acfd994af07461910e53052b9c3c51e4fe7..eddbbf9e28b2860d708659db6dd9286fb2482d08 100644 (file)
@@ -5,7 +5,6 @@
 package exvar
 
 import (
-       "fmt";
        "json";
        "testing";
 )
index 259d507ed7617bb6ec6a040ce5186cf27ff8c883..7b796cb147ff973c61221d1fbf462d9b247c3ee4 100644 (file)
@@ -6,7 +6,6 @@ package flag_test
 
 import (
        . "flag";
-       "fmt";
        "testing";
 )
 
index b294ec4f4017b6b5871804ccb5f5bc9e3158d8a1..65e76b9641fa836e2659b152e3c90fc261ecf22e 100644 (file)
@@ -10,7 +10,6 @@ import (
        "math";
        "strings";
        "testing";
-       "unsafe";
 )
 
 func TestFmtInterface(t *testing.T) {
index f8baa718951c63235e074fddaf257d95242382bf..9a62686e33812a48cb9ec5072eaccdae1ee88bc9 100644 (file)
@@ -4,9 +4,6 @@
 
 package ast
 
-import "go/token";
-
-
 type Scope struct {
        Outer *Scope;
        Names map[string]*Ident
index ae6ab53c31a8976dbf9cc0c10d83ef34d4fa3248..90212780d00a1c265768322110375e2d20c41dcf 100644 (file)
@@ -7,7 +7,6 @@
 package doc
 
 import (
-       "fmt";
        "go/ast";
        "io";
        "once";
index 5f9429bb1a4fed9519a27892c4561f6351548741..9357830b571804b46c0394164319cc84d07b0cdc 100644 (file)
@@ -6,13 +6,10 @@ package doc
 
 import (
        "container/vector";
-       "fmt";
        "go/ast";
        "go/token";
-       "io";
        "regexp";
        "sort";
-       "strings";
 )
 
 
index 3ec75637b8ecef5ab69ab546f451b215b705c393..f0a323b7ab96f781ec2ff1818e6925befbd79a9f 100644 (file)
@@ -8,11 +8,9 @@ package parser
 
 import (
        "bytes";
-       "container/vector";
        "fmt";
        "go/ast";
        "go/scanner";
-       "go/token";
        "io";
        "os";
        pathutil "path";
index e8a981e8df45605563afc3041704282752c71d70..d3be849b51a11317b0936c3775419e91551048c9 100644 (file)
 package parser
 
 import (
-       "bytes";
        "container/vector";
        "fmt";
        "go/ast";
        "go/scanner";
        "go/token";
-       "io";
-       "os";
-       "strings";
 )
 
 
index 03a92d1660a2f463bbb08ff75475dd65cd0e2bbf..bb07f2928ca852c83f967faee5beb4dac666aac9 100644 (file)
@@ -5,7 +5,6 @@
 package parser
 
 import (
-       "go/ast";
        "os";
        "testing";
 )
index f9019fdacfc3932f6fdfe6863f8164bda2c9ab92..b71c79124d4725f54911b2ff9c3b2397dba26041 100644 (file)
@@ -10,7 +10,6 @@ import (
        "io";
        "go/ast";
        "go/parser";
-       "os";
        "path";
        "testing";
 )
index 52a50153172ba3c96d91aba0023a8cdc0cc8f6c7..bc3564dbc5263c23bad5e23347c985f56892457f 100644 (file)
@@ -8,7 +8,6 @@ import (
        "bytes";
        "io";
        "os";
-       "reflect";
        "sync";
 )
 
index 45247d5ecc3b72367ae4b4bca1fae6ad65154725..be0fc9b5920ae3f1ecf4d46656f8c7643d6b283a 100644 (file)
@@ -10,7 +10,6 @@ import (
        "math";
        "os";
        "reflect";
-       "sync";
        "unsafe";
 )
 
index 4cad834d093324c5b362c7020c5e6dfee1876cbd..178d30f71b7137c07342b4f6bb89901ee5f70687 100644 (file)
@@ -11,7 +11,6 @@ import (
        "reflect";
        "strings";
        "testing";
-       "unsafe";
 )
 
 type ET2 struct {
index 21da8771d9531e3e806718e0dabb78383162580e..79dbd7e487393f6d84592386031d00efa56e5e40 100644 (file)
@@ -8,9 +8,7 @@ import (
        "fmt";
        "os";
        "reflect";
-       "strings";
        "sync";
-       "unicode";
 )
 
 type kind reflect.Type
index ed33487ca6f40e1160ed5f3ae3c36bda3cab911e..72149a60bde70bb90fce0081d811954b7b21780d 100644 (file)
@@ -5,7 +5,6 @@
 package gob
 
 import (
-       "os";
        "reflect";
        "testing";
 )
index 284106c1a8847b34e8d8dcb1aaa9b323c18fdb17..71f9aa7101fb49606375f36586c6c0784df03a12 100644 (file)
@@ -10,7 +10,6 @@ import (
        "bufio";
        "fmt";
        "io";
-       "log";
        "net";
        "os";
        "strconv";
index 32f2c17b21f82d8fbf4a279ed4296c19ee804cb3..9e353dc26a399dcd6e31883e2512f7d77f030d69 100644 (file)
@@ -7,7 +7,6 @@
 package http
 
 import (
-       "fmt";
        "io";
        "strings";
        "testing";
index 4c3cbf8a5c7939f98561aa83d157b8bcdaefb899..c5762ab296aa9c13cb55ecbba48befda1203ae64 100644 (file)
@@ -4,11 +4,7 @@
 
 package http
 
-import (
-       "fmt";
-       "os";
-       "testing";
-)
+import "testing"
 
 type stringMultimap map[string] []string
 
index be6614b643d1110751d8275f41396e87069610d7..070a428f6aa4f7ec00b9d35271e4131d4ef788dd 100644 (file)
@@ -10,7 +10,6 @@
 package io
 
 import (
-       "bytes";
        "os";
        "strings";
 )
index 9ebf1a39191e2363e9c329e5baa17393c573d9ce..1607013b22b9f631a4c0bcf3efbe26306b25cdbe 100644 (file)
@@ -12,10 +12,7 @@ package json
 
 import (
        "bytes";
-       "fmt";
-       "math";
        "strconv";
-       "strings";
        "utf8";
 )
 
index cb5389aadc91df903aedff42ff84c7acddfdc815..810277713ca0acea83e192e52bbf2eed336d04d8 100644 (file)
@@ -7,7 +7,6 @@ package net
 import (
        "flag";
        "io";
-       "os";
        "strings";
        "syscall";
        "testing";
index 4eade10462772bb7d0668a15a2417fbc7110ca4d..a97f75cd503e069cfc2c411344bfe1cce3ad53cf 100644 (file)
@@ -16,7 +16,6 @@
 package net
 
 import (
-       "io";
        "once";
        "os";
        "strings";
index 063c8e9b1603a7c0f9e640f467f42434ed99c28b..e2d36f97eaa220e4b0ddfbd98fb0b017c21d96d8 100644 (file)
@@ -6,11 +6,7 @@
 
 package net
 
-import (
-       "io";
-       "os";
-       "strconv";
-)
+import "os"
 
 type _DNS_Config struct {
        servers []string;       // servers to use
index 15ab2d5474f41ce4e6cf269928ffbfaf7d3c259d..4efb8bf8e0eacc7b41eb80846b9b835219d843fa 100644 (file)
@@ -5,7 +5,6 @@
 package net
 
 import (
-       "os";
        "regexp";
        "testing";
 )
index c5789adc9df14c786511cdd6c47c2b63be8c81bf..b806a07f61d7e0ddb783834db3edda3c7354ff86 100644 (file)
@@ -7,7 +7,6 @@
 package net
 
 import (
-       "io";
        "once";
        "os";
 )
index 76fc045e51e31c21a66a31d9ac5b269bc232e019..d961ae0687d49f0ee8492f25e358ed8788c4d2ad 100644 (file)
@@ -6,7 +6,6 @@ package net
 
 import (
        "io";
-       "os";
        "strings";
        "syscall";
        "testing";
index bc49dadf45a0ec803d1ae9df58f5676a824d9265..d2edbfaae1f0ad7ba279bc50e933a530dff246ac 100644 (file)
@@ -5,7 +5,6 @@
 package net
 
 import (
-       "os";
        "testing";
        "time";
 )
index 39d5515bac8c8134bf89a0f09bf4d5229c9230fe..3a6f5a16f9290a0f510f84eb65afe01e1529ff6e 100644 (file)
@@ -6,10 +6,7 @@
 
 package os
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "syscall"
 
 var Args []string;     // provided by runtime
 var Envs []string;     // provided by runtime
index 27c28394c51b99ae191dc7a394241d5933b0a0dc..2466287522040e0f00b2615d1b803ee6c26c8c9f 100644 (file)
@@ -7,7 +7,6 @@ package reflect
 import (
        "runtime";
        "strconv";
-       "strings";
        "unsafe";
 )
 
index 4c6dd89edcd075cc94ca9d6bc9d478fff09b4a2e..216ea5d5c824e747a88a4261fd91a9a89929030f 100644 (file)
@@ -12,7 +12,6 @@ import (
        "log";
        "net";
        "os";
-       "strconv";
        "sync";
 )
 
index 990bd1f9cbcd5005656f7563c4235e3a0422490c..0bf39a227b095946d24264ed35629025382e71b8 100644 (file)
@@ -11,10 +11,7 @@ package rpc
 
 import (
        "fmt";
-       "gob";
        "http";
-       "io";
-       "log";
        "os";
        "sort";
        "template";
index ff5de90c8b2088196d5c975c5859a75ae123646a..af58b538a6b27c3a80ca5655d6fb966a851d91d0 100644 (file)
@@ -5,9 +5,7 @@
 package rpc
 
 import (
-       "gob";
        "http";
-       "io";
        "log";
        "net";
        "once";
index e78244ea0acbdef68fae1a9b9550e6450f1bbb04..a2894fc75ca8b70beef50ad5b16f1ecf1bde8b61 100644 (file)
@@ -5,7 +5,6 @@
 package strconv_test
 
 import (
-       "fmt";
        "os";
        "reflect";
        . "strconv";
index ab46e50f4000eaaa7745ee0ca9ab2699fa229164..2632e572a7c6212fa71ed94679b48dcc2eb42459 100644 (file)
@@ -5,7 +5,6 @@
 package strconv_test
 
 import (
-       "fmt";
        "os";
        "reflect";
        . "strconv";
index 35fc795ae1847018d433c604d3d3f0f5c4e13c63..5254cf9a8b5cc4b41686aeb3764844a709649be9 100644 (file)
@@ -5,7 +5,6 @@
 package strconv_test
 
 import (
-       "fmt";
        . "strconv";
        "testing";
 )
index c38762dfb705f1c2dc6ec1a4254ee8af9ff7e3d8..89092a6342cdea0fb892d31d33e385f6192135b9 100644 (file)
@@ -6,7 +6,6 @@ package strconv_test
 import (
        "bufio";
        "fmt";
-       "io";
        "os";
        "strconv";
        "strings";
index 554c10b8b86e78c4e2e8b99ee8302ebbd0a6e2fa..56f5fb97c84ae625cc93cf5cd46a6d40c124a419 100644 (file)
@@ -5,8 +5,6 @@
 package strconv_test
 
 import (
-       "fmt";
-       "os";
        . "strconv";
        "testing";
 )
index 59f35b2bfb458c457d50d47be679f10045bd5d47..c191352558f440c94631437fbac4974191a62b82 100644 (file)
@@ -11,8 +11,6 @@
 // the manuals for the appropriate operating system.
 package syscall
 
-import "unsafe"
-
 func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
 func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
 func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
index 130a26427ff3dfe2b11bfb152b7d3692bce083c1..bbdfcb4bb8b74659784ccbd853ccd55b2d1510f0 100644 (file)
@@ -10,7 +10,6 @@ import (
        "bytes";
        "fmt";
        "io";
-       "reflect";
        "strings";
 )
 
index d3ce37863af4941404de1e8024688733126bedab..11996f609b64bb405952ed247d40f1ede3eaa774 100644 (file)
@@ -9,8 +9,6 @@ import (
        "container/vector";
        "fmt";
        "io";
-       "os";
-       "reflect";
        "testing";
 )
 
index 6f9ab12cb44cbc0563e5f243f8ba3ef9909ab033..ee57edd454eb7ba90a9fea3e8dad5b11d0951109 100644 (file)
@@ -7,7 +7,6 @@ package time
 import (
        "os";
        "syscall";
-       "unsafe";
 )
 
 // Sleep pauses the current goroutine for ns nanoseconds.
index 47ee84fc7e2b09c86a15cc97f52f2b17e4e037cf..e716ba57a3a46f6192e9adb0f62048c26f58b3cf 100644 (file)
@@ -4,11 +4,6 @@
 
 package time
 
-import (
-       "syscall";
-       "unsafe";
-)
-
 // TODO(rsc): This implementation of Tick is a
 // simple placeholder.  Eventually, there will need to be
 // a single central time server no matter how many tickers
index 9c689ca2db8f48f4e58fc87855db8fccbb9993d1..3f06a74a2f171f771952c29f11f8afc4a16b32e6 100644 (file)
@@ -6,7 +6,6 @@ package utf8_test
 
 import (
        "bytes";
-       "fmt";
        "strings";
        "testing";
        . "utf8";
index 7babb15fc25855bdd8d9d9f83a9e3eb699da292a..0d58d9adda229447650087854fc02a4fa9d204ab 100644 (file)
@@ -39,7 +39,6 @@ package main
 import (
        "flag";
        "fmt";
-       "os";
 )
 
 var n = flag.Int("n", 15, "depth")
index 4e25a357bec01876e99f8849d1cbbcf945466e4b..827fe463ee4d4737129361eea76037a1f2748812 100644 (file)
@@ -39,7 +39,6 @@ package main
 import (
        "flag";
        "fmt";
-       "os";
 )
 
 var n = flag.Int("n", 15, "depth")
index 89ece01b98bbd8d55b581fc707c9b5bd626c8052..31ce222d612a7fd8d361bc4163428d2ff2e705bf 100644 (file)
@@ -6,11 +6,6 @@
 
 package main
 
-import (
-       "fmt";
-       "os";
-)
-
 type T struct {
        a float64;
        b int64;
index 87f4fbb9db92335fa2e2439456e56d363bcf70e7..0f1d20e47d982dde412736b2a508362b3ac62567 100644 (file)
@@ -4,5 +4,5 @@
 
 package bug1
 
-import "./bug0"
+import "./bug0"
 
index 87cdca7fc3d84fe23262f746b26c6ac88bc4b7a4..d0b062a65907de3b4485b00353265fa719adf731 100644 (file)
@@ -6,6 +6,7 @@
 
 package main
 import os "os"
+type _ os.Error
 func f() (os int) {
         // In the next line "os" should refer to the result variable, not
         // to the package.
index f9f6dd0313ea83bb9184c67a2ab81ce295044280..d1e2d8b5631cf7ddbc838815f883b5ecc310959d 100644 (file)
@@ -6,7 +6,9 @@
 
 package foo
 import "fmt"
+
 func f() {
+       fmt.Println();
        fmt := 1;
        _ = fmt;
 }
index cfbb558bfdb6bc18603a2fb1815d2bf4acdabcd6..e53100112062fdb3f94118d0db71f1b40f8d9381 100644 (file)
@@ -4,7 +4,7 @@
 
 package bug2
 
-import "./bug1"
+import "./bug1"
 import "./bug0"
 
 type T2 struct { t bug0.T }
index ac47267fa868eb6ff9e508dc10d8c69e46f094db..919298e6f74b36178ef1b8bc5f6d09fa563af4d7 100644 (file)
@@ -6,8 +6,6 @@
 
 package main
 
-import "fmt"
-
 func main() {
        x⊛y := 1;     // ERROR "identifier"
 }
index b2c68a0fe8b322a4c8224b136f31a82618575c1e..84ff59d2f5d2e3302a962d580c5cd69a547ffa46 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 package main
-import "fmt"
 import "reflect"
 type S1 struct { i int }
 type S2 struct { S1 }
index 3851cb672c91e95b1fdb86b9e9df8ff6cf476f92..e1cbce05dcba2b980223b9c3be5a9716da4c6c68 100644 (file)
@@ -9,6 +9,7 @@ package main
 import "sort"
 
 func main() {
+       sort.Sort(nil);
        var x int;
        sort(x);        // ERROR "package"
 }
index 67340359d61bc7399ec9be5b614d69cdf93e39e7..b87ad6f4fee3fdbaaf9ab985d112dba1012ad772 100644 (file)
@@ -7,3 +7,6 @@ package a
 func init() {
        println("a");
 }
+
+type T int;
+
index a2d559630fefa10b73fc235f63521e2036d958a8..3e780ac0dd82641d51a7b24e28b57ad2d50ba7b5 100644 (file)
@@ -7,3 +7,5 @@ package b
 func init() {
        println("b");
 }
+
+type V int;
index fe03f646d66dfc64bd8bcb8bdbae2e2a8afb9da2..44fcccfc00acf70e29969a25a7511fd7e705ce3a 100644 (file)
@@ -9,5 +9,8 @@ package main
 import . "./a"
 import . "./b"
 
+var _ T
+var _ V
+
 func main() {
 }
index 7765de84db3015859d4f243a26615fa046328262..139bb0acb6b1447333340bf81d29aeadb198338f 100644 (file)
@@ -12,7 +12,6 @@
 
 package main
 
-import "log"
 import "time"
 
 func f() {