Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-03-24 12:11:16 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-03-24 18:14:51 +0300
commitb5f39d23b86f9cb83c51da9fe4abb4c19c01c3b7 (patch)
treecf23180dc07698391cf47c2fe525755417729020 /source/fileInfo.go
parent3011f36c27ecde309325e6c75ca377f4f87fa97a (diff)
all: Apply staticcheck recommendations
Diffstat (limited to 'source/fileInfo.go')
-rw-r--r--source/fileInfo.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go
index 752f104e8..3f262fb5e 100644
--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -14,8 +14,6 @@
package source
import (
- "fmt"
- "io"
"os"
"path/filepath"
"strings"
@@ -23,8 +21,6 @@ import (
"github.com/gohugoio/hugo/common/hugio"
- "github.com/spf13/afero"
-
"github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/helpers"
@@ -286,24 +282,3 @@ func (sp *SourceSpec) NewFileInfo(baseDir, filename string, isLeafBundle bool, f
return f
}
-
-func printFs(fs afero.Fs, path string, w io.Writer) {
- if fs == nil {
- return
- }
- afero.Walk(fs, path, func(path string, info os.FileInfo, err error) error {
-
- if info != nil && !info.IsDir() {
-
- s := path
- if lang, ok := info.(hugofs.LanguageAnnouncer); ok {
- s = s + "\t" + lang.Lang()
- }
- if fp, ok := info.(hugofs.FilePather); ok {
- s = s + "\t" + fp.Filename()
- }
- fmt.Fprintln(w, " ", s)
- }
- return nil
- })
-}