diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-01-15 21:04:37 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-01-16 17:12:56 +0100 |
commit | 55a9bc1e70c2c0e321807a446e0d37dcf3cbcc8d (patch) | |
tree | fdd4638d9b8237c89b04e404fe65e7a4ba6b165b /helpers | |
parent | 20a7ce7c1bf60709baf270398370e41162222d87 (diff) | |
download | hugo-55a9bc1e70c2c0e321807a446e0d37dcf3cbcc8d.tar.gz hugo-55a9bc1e70c2c0e321807a446e0d37dcf3cbcc8d.zip |
helpers: Remove unused code
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/content.go | 3 | ||||
-rw-r--r-- | helpers/general.go | 6 | ||||
-rw-r--r-- | helpers/path.go | 13 |
3 files changed, 0 insertions, 22 deletions
diff --git a/helpers/content.go b/helpers/content.go index 080e31909..157f75079 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -37,9 +37,6 @@ import ( "github.com/gohugoio/hugo/config" ) -// SummaryDivider denotes where content summarization should end. The default is "<!--more-->". -var SummaryDivider = []byte("<!--more-->") - var ( openingPTag = []byte("<p>") closingPTag = []byte("</p>") diff --git a/helpers/general.go b/helpers/general.go index 73b7aff66..236a763fa 100644 --- a/helpers/general.go +++ b/helpers/general.go @@ -258,12 +258,6 @@ func compareStringSlices(a, b []string) bool { return true } -// LogPrinter is the common interface of the JWWs loggers. -type LogPrinter interface { - // Println is the only common method that works in all of JWWs loggers. - Println(a ...interface{}) -} - // DistinctLogger ignores duplicate log statements. type DistinctLogger struct { loggers.Logger 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) |