Skip to content

Commit 458aedb

Browse files
committed
Remove unused functions
1 parent 4d178fd commit 458aedb

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

util.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
package clover
22

33
import (
4-
"io/ioutil"
54
"os"
6-
"path/filepath"
7-
"strings"
85
)
96

10-
func listDir(dir string) ([]string, error) {
11-
fInfos, err := ioutil.ReadDir(dir)
12-
if err != nil {
13-
return nil, err
14-
}
15-
16-
filenames := make([]string, 0, len(fInfos))
17-
for _, info := range fInfos {
18-
filenames = append(filenames, info.Name())
19-
}
20-
return filenames, nil
21-
}
22-
237
const defaultPermDir = 0777
248

259
func makeDirIfNotExists(dir string) error {
@@ -29,11 +13,6 @@ func makeDirIfNotExists(dir string) error {
2913
return nil
3014
}
3115

32-
func getBasename(filename string) string {
33-
baseName := filepath.Base(filename)
34-
return strings.TrimSuffix(baseName, filepath.Ext(baseName))
35-
}
36-
3716
func copyMap(m map[string]interface{}) map[string]interface{} {
3817
mapCopy := make(map[string]interface{})
3918
for k, v := range m {

0 commit comments

Comments
 (0)