aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/json/jsontext/encode.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/encoding/json/jsontext/encode.go b/src/encoding/json/jsontext/encode.go
index 1e0861e9f0..bb9a41f0f6 100644
--- a/src/encoding/json/jsontext/encode.go
+++ b/src/encoding/json/jsontext/encode.go
@@ -900,11 +900,6 @@ func (e *Encoder) OutputOffset() int64 {
return e.s.previousOffsetEnd()
}
-// Deprecated: Use [Encoder.AvailableBuffer] instead.
-func (e *Encoder) UnusedBuffer() []byte {
- return e.AvailableBuffer()
-}
-
// AvailableBuffer returns a zero-length buffer with a possible non-zero capacity.
// This buffer is intended to be used to populate a [Value]
// being passed to an immediately succeeding [Encoder.WriteValue] call.