summaryrefslogtreecommitdiffstats
path: root/libgo/go/compress/flate/huffman_bit_writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/compress/flate/huffman_bit_writer.go')
-rw-r--r--libgo/go/compress/flate/huffman_bit_writer.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/libgo/go/compress/flate/huffman_bit_writer.go b/libgo/go/compress/flate/huffman_bit_writer.go
index 57b56b5c96d..25e1da336aa 100644
--- a/libgo/go/compress/flate/huffman_bit_writer.go
+++ b/libgo/go/compress/flate/huffman_bit_writer.go
@@ -7,7 +7,6 @@ package flate
import (
"io"
"math"
- "strconv"
)
const (
@@ -85,13 +84,6 @@ type huffmanBitWriter struct {
err error
}
-type WrongValueError struct {
- name string
- from int32
- to int32
- value int32
-}
-
func newHuffmanBitWriter(w io.Writer) *huffmanBitWriter {
return &huffmanBitWriter{
w: w,
@@ -105,11 +97,6 @@ func newHuffmanBitWriter(w io.Writer) *huffmanBitWriter {
}
}
-func (err WrongValueError) Error() string {
- return "huffmanBitWriter: " + err.name + " should belong to [" + strconv.FormatInt(int64(err.from), 10) + ";" +
- strconv.FormatInt(int64(err.to), 10) + "] but actual value is " + strconv.FormatInt(int64(err.value), 10)
-}
-
func (w *huffmanBitWriter) flushBits() {
if w.err != nil {
w.nbits = 0
OpenPOWER on IntegriCloud