mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
encoding/xml: remove dead code
Avoid future 'declared and not used error'. See also issue 6414. R=r CC=golang-dev https://golang.org/cl/13242058
This commit is contained in:
parent
c757020b55
commit
0d0c748930
1 changed files with 0 additions and 2 deletions
|
|
@ -247,10 +247,8 @@ func (d *downCaser) Read(p []byte) (int, error) {
|
|||
}
|
||||
|
||||
func TestRawTokenAltEncoding(t *testing.T) {
|
||||
sawEncoding := ""
|
||||
d := NewDecoder(strings.NewReader(testInputAltEncoding))
|
||||
d.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) {
|
||||
sawEncoding = charset
|
||||
if charset != "x-testing-uppercase" {
|
||||
t.Fatalf("unexpected charset %q", charset)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue