Skip to content

Commit 5a9c6f7

Browse files
committed
Remove extraneous debugging code
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
1 parent 6088391 commit 5a9c6f7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

decode.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"math"
1515
"reflect"
1616
"runtime"
17-
"runtime/debug"
1817
"strconv"
1918
"unicode"
2019
"unicode/utf16"
@@ -308,9 +307,6 @@ func (d *decodeState) init(data []byte) *decodeState {
308307

309308
// error aborts the decoding by panicking with err.
310309
func (d *decodeState) error(err error) {
311-
if err == errPhase {
312-
debug.PrintStack()
313-
}
314310
panic(err)
315311
}
316312

0 commit comments

Comments
 (0)