浏览代码

removed sprintf from group-by extension, use the bootstrap-table utils
instead

Dustin Utecht 5 年之前
父节点
当前提交
df748ddcfc
共有 1 个文件被更改,包括 0 次插入18 次删除
  1. 0 18
      src/extensions/group-by-v2/bootstrap-table-group-by.js

+ 0 - 18
src/extensions/group-by-v2/bootstrap-table-group-by.js

@@ -5,24 +5,6 @@
 
 let initBodyCaller
 
-// it only does '%s', and return '' when arguments are undefined
-const sprintf = function (str) {
-  const args = arguments
-  let flag = true
-  let i = 1
-
-  str = str.replace(/%s/g, () => {
-    const arg = args[i++]
-
-    if (typeof arg === 'undefined') {
-      flag = false
-      return ''
-    }
-    return arg
-  })
-  return flag ? str : ''
-}
-
 const groupBy = (array, f) => {
   const tmpGroups = {}
   array.forEach(o => {