Remove redundant builtin.TrimQuotes function

This commit is contained in:
Nigel Tao committed 2017-12-02 12:25:50 +11:00
1 parent 404b149a9a
commit 5f5791e56d
5 files changed
+5 -13

No files matched your search

-7
View File
@@ -60,10 +60,3 @@ func init() {
// TODO: a collection of forbidden variable names like and, or, not, as, ref,
// deref, false, true, in, out, this, u8, u16, etc?
func TrimQuotes(s string) string {
if len(s) >= 2 && s[0] == '"' && s[len(s)-1] == '"' {
return s[1 : len(s)-1]
}
return s
}