summaryrefslogtreecommitdiffstats
path: root/helpers/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/path.go')
-rw-r--r--helpers/path.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/helpers/path.go b/helpers/path.go
index b504f5251..a40e0f8ff 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -35,9 +35,6 @@ import (
"github.com/spf13/afero"
)
-// ErrThemeUndefined is returned when a theme has not be defined by the user.
-var ErrThemeUndefined = errors.New("no theme set")
-
// MakePath takes a string with any characters and replace it
// so the string could be used in a path.
// It does so by creating a Unicode-sanitized string, with the spaces replaced,
@@ -456,16 +453,6 @@ func IsEmpty(path string, fs afero.Fs) (bool, error) {
return afero.IsEmpty(fs, path)
}
-// FileContains checks if a file contains a specified string.
-func FileContains(filename string, subslice []byte, fs afero.Fs) (bool, error) {
- return afero.FileContainsBytes(fs, filename, subslice)
-}
-
-// FileContainsAny checks if a file contains any of the specified strings.
-func FileContainsAny(filename string, subslices [][]byte, fs afero.Fs) (bool, error) {
- return afero.FileContainsAnyBytes(fs, filename, subslices)
-}
-
// Exists checks if a file or directory exists.
func Exists(path string, fs afero.Fs) (bool, error) {
return afero.Exists(fs, path)