some deletions
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / ccount / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/ccount/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/ccount/index.js
deleted file mode 100644 (file)
index 6110852..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict'
-
-module.exports = ccount
-
-function ccount(source, character) {
-  var value = String(source)
-  var count = 0
-  var index
-
-  if (typeof character !== 'string') {
-    throw new Error('Expected character')
-  }
-
-  index = value.indexOf(character)
-
-  while (index !== -1) {
-    count++
-    index = value.indexOf(character, index + character.length)
-  }
-
-  return count
-}