Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ostafen committed Mar 14, 2022
1 parent 4d178fd commit 458aedb
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions util.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
package clover

import (
"io/ioutil"
"os"
"path/filepath"
"strings"
)

func listDir(dir string) ([]string, error) {
fInfos, err := ioutil.ReadDir(dir)
if err != nil {
return nil, err
}

filenames := make([]string, 0, len(fInfos))
for _, info := range fInfos {
filenames = append(filenames, info.Name())
}
return filenames, nil
}

const defaultPermDir = 0777

func makeDirIfNotExists(dir string) error {
Expand All @@ -29,11 +13,6 @@ func makeDirIfNotExists(dir string) error {
return nil
}

func getBasename(filename string) string {
baseName := filepath.Base(filename)
return strings.TrimSuffix(baseName, filepath.Ext(baseName))
}

func copyMap(m map[string]interface{}) map[string]interface{} {
mapCopy := make(map[string]interface{})
for k, v := range m {
Expand Down

0 comments on commit 458aedb

Please sign in to comment.