From 7b6ce4a595c455a61377ef21aa0ddf3748192a31 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 6 Jun 2020 22:41:15 +1000 Subject: [PATCH] Remove dumbindent debugging code --- lib/dumbindent/dumbindent.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/dumbindent/dumbindent.go b/lib/dumbindent/dumbindent.go index e05ec753..f1657f6a 100644 --- a/lib/dumbindent/dumbindent.go +++ b/lib/dumbindent/dumbindent.go @@ -112,23 +112,6 @@ func FormatBytes(dst []byte, src []byte) []byte { } nBraces -= closeBraces - // When debugging, uncomment these (and import "strconv") to prefix - // every non-blank line with the state. - // - // dst = append(dst, strconv.Itoa(nBraces)...) - // dst = append(dst, ',') - // dst = append(dst, strconv.Itoa(nParens)...) - // if openBrace { - // dst = append(dst, '{') - // } else { - // dst = append(dst, ':') - // } - // if hanging { - // dst = append(dst, '=') - // } else { - // dst = append(dst, ':') - // } - // Output a certain number of spaces to rougly approximate the // "clang-format -style=Chromium" indentation style. indent := 0