Skip to content

Commit 730165c

Browse files
committed
pkg/strconv: remove CanBackquote
This function doesn't make sense in CUE, as it has no backquoted strings. Change-Id: I12a2d0c920c3e68277c00529abda49ec01d2389a Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2683 Reviewed-by: Marcel van Lohuizen <[email protected]>
1 parent 73e3f6b commit 730165c

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

cue/builtins.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/strconv/strconv.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Use of this source code is governed by a BSD-style
1717
// license that can be found in the LICENSE file.
1818

19-
//go:generate qgo -exclude=Append,Unquote,Itoa extract strconv
19+
//go:generate qgo -exclude=Append,Unquote,Itoa,CanBackquote extract strconv
2020

2121
package strconv
2222

@@ -174,13 +174,6 @@ func QuoteRuneToGraphic(r rune) string {
174174
return strconv.QuoteRuneToGraphic(r)
175175
}
176176

177-
// CanBackquote reports whether the string s can be represented
178-
// unchanged as a single-line backquoted string without control
179-
// characters other than tab.
180-
func CanBackquote(s string) bool {
181-
return strconv.CanBackquote(s)
182-
}
183-
184177
// IsPrint reports whether the rune is defined as printable by Go, with
185178
// the same definition as unicode.IsPrint: letters, numbers, punctuation,
186179
// symbols and ASCII space.

0 commit comments

Comments
 (0)