diff options
Diffstat (limited to 'helpers/content.go')
-rw-r--r-- | helpers/content.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/helpers/content.go b/helpers/content.go index 6d9f1ca08..f6576c04f 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -511,12 +511,6 @@ func TotalWords(s string) int { return n } -// Old implementation only kept for benchmark comparison. -// TODO(bep) remove -func totalWordsOld(s string) int { - return len(strings.Fields(s)) -} - // TruncateWordsByRune truncates words by runes. func (c *ContentSpec) TruncateWordsByRune(in []string) (string, bool) { words := make([]string, len(in)) |