Skip to content

Commit ca0d70e

Browse files
committed
Remove unused code
1 parent 21d7205 commit ca0d70e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Diff for: v2/quotestate.go

-26
Original file line numberDiff line numberDiff line change
@@ -271,29 +271,3 @@ func checkMultiLineString(trimmedLine string, inCodeBlock bool) (bool, bool) {
271271
}
272272
return inCodeBlock, foundDocstringMarker
273273
}
274-
275-
// checkMultiLineString2 detects and updates the inCodeBlock state.
276-
// For languages like Nim, Mojo, Python and Starlark.
277-
func checkMultiLineString2(trimmedLine string, inCodeBlock bool) (bool, bool) {
278-
foundDocstringMarker := false
279-
if trimmedLine == "return \"\"\"" || trimmedLine == "return '''" {
280-
inCodeBlock = true
281-
foundDocstringMarker = false
282-
} else if trimmedLine == "\"\"\"" || trimmedLine == "'''" { // only 3 letters
283-
inCodeBlock = !inCodeBlock
284-
foundDocstringMarker = true
285-
} else if strings.HasPrefix(trimmedLine, "\"\"\"") && strings.HasSuffix(trimmedLine, "\"\"\"") {
286-
inCodeBlock = false
287-
foundDocstringMarker = true
288-
} else if strings.HasPrefix(trimmedLine, "'''") && strings.HasSuffix(trimmedLine, "'''") {
289-
inCodeBlock = false
290-
foundDocstringMarker = true
291-
} else if strings.HasPrefix(trimmedLine, "\"\"\"") || strings.HasPrefix(trimmedLine, "'''") {
292-
inCodeBlock = !inCodeBlock
293-
foundDocstringMarker = true
294-
} else if strings.HasSuffix(trimmedLine, "\"\"\"") || strings.HasSuffix(trimmedLine, "'''") {
295-
inCodeBlock = !inCodeBlock
296-
foundDocstringMarker = true
297-
}
298-
return inCodeBlock, foundDocstringMarker
299-
}

0 commit comments

Comments
 (0)