mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
helpers: Remove unused code
This commit is contained in:
parent
20a7ce7c1b
commit
55a9bc1e70
3 changed files with 0 additions and 22 deletions
|
@ -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>")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue