Skip to content

Commit 399f397

Browse files
Remove Debugf
1 parent 1e23e66 commit 399f397

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

search-replace.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,14 @@ func main() {
135135
}
136136
}
137137

138-
var debugMode = false
139-
140-
func Debugf(format string, args ...interface{}) {
141-
if debugMode {
142-
fmt.Printf(format, args...)
143-
}
144-
}
145-
146138
func fixLine(line *[]byte, replacements []*Replacement) *[]byte {
147-
148-
Debugf("Doing global replacements: %s\n", string(*line))
149-
150139
linePart := *line
151140

152141
var rebuiltLine []byte
153142

154143
for len(linePart) > 0 {
155144
result, err := fixLineWithSerializedData(linePart, replacements)
156145
if err != nil {
157-
Debugf("Error when trying to fix line : %s\n", err.Error())
158146
rebuiltLine = append(rebuiltLine, linePart...)
159147
break
160148
}
@@ -165,8 +153,6 @@ func fixLine(line *[]byte, replacements []*Replacement) *[]byte {
165153

166154
*line = rebuiltLine
167155

168-
Debugf("All done: %s\n", string(*line))
169-
170156
return line
171157
}
172158

0 commit comments

Comments
 (0)