diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-01-05 00:00:00 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-01-05 00:00:00 +0100 |
commit | 001dd01ee2fc58e582c2ab7c748cd21137c35a6a (patch) | |
tree | 530cdec8551237d751629953976c59b861955b60 /helpers/content.go | |
parent | e856f241298b175c7d14228be83affc2e3ecebf6 (diff) |
helpers: Remove unusded WordCount
Diffstat (limited to 'helpers/content.go')
-rw-r--r-- | helpers/content.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/helpers/content.go b/helpers/content.go index 9b245972e..939be0554 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -421,16 +421,6 @@ func totalWordsOld(s string) int { return len(strings.Fields(s)) } -// WordCount takes content and returns a map of words and count of each word. -func WordCount(s string) map[string]int { - m := make(map[string]int) - for _, f := range strings.Fields(s) { - m[f]++ - } - - return m -} - // TruncateWordsByRune truncates words by runes. func TruncateWordsByRune(words []string, max int) (string, bool) { count := 0 |