aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/stream.go
diff options
context:
space:
mode:
authorMarvin Stenger <marvin.stenger94@gmail.com>2017-09-21 21:03:42 +0200
committerIan Lance Taylor <iant@golang.org>2017-09-27 14:06:41 +0000
commitabd7ba026d4cfe65fdc99808de63a703694432c2 (patch)
tree91f35fe7562820d583161408e0d24a6982bf4bae /src/encoding/json/stream.go
parent6f2e5f9c3720540ae5804b37222f6e82313ce13f (diff)
downloadgo-abd7ba026d4cfe65fdc99808de63a703694432c2.tar.xz
encoding/json: remove superfluous comment
Remove an old comment introduced in golang.org/cl/9073. Change-Id: I14be27ddfac987f44d839920bc4d02361a576f06 Reviewed-on: https://go-review.googlesource.com/66371 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/stream.go')
-rw-r--r--src/encoding/json/stream.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/encoding/json/stream.go b/src/encoding/json/stream.go
index 95e30ce36d..76788f5fe7 100644
--- a/src/encoding/json/stream.go
+++ b/src/encoding/json/stream.go
@@ -500,20 +500,3 @@ func (dec *Decoder) peek() (byte, error) {
err = dec.refill()
}
}
-
-/*
-TODO
-
-// EncodeToken writes the given JSON token to the stream.
-// It returns an error if the delimiters [ ] { } are not properly used.
-//
-// EncodeToken does not call Flush, because usually it is part of
-// a larger operation such as Encode, and those will call Flush when finished.
-// Callers that create an Encoder and then invoke EncodeToken directly,
-// without using Encode, need to call Flush when finished to ensure that
-// the JSON is written to the underlying writer.
-func (e *Encoder) EncodeToken(t Token) error {
- ...
-}
-
-*/