mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
all: Remove unused code
Using x/tools/cmd/deadcode
This commit is contained in:
@@ -30,7 +30,6 @@ func TestIsOsFs(t *testing.T) {
|
||||
c.Assert(IsOsFs(&afero.MemMapFs{}), qt.Equals, false)
|
||||
c.Assert(IsOsFs(afero.NewBasePathFs(&afero.MemMapFs{}, "/public")), qt.Equals, false)
|
||||
c.Assert(IsOsFs(afero.NewBasePathFs(Os, t.TempDir())), qt.Equals, true)
|
||||
|
||||
}
|
||||
|
||||
func TestNewDefault(t *testing.T) {
|
||||
@@ -38,7 +37,7 @@ func TestNewDefault(t *testing.T) {
|
||||
v := config.New()
|
||||
v.Set("workingDir", t.TempDir())
|
||||
v.Set("publishDir", "public")
|
||||
f := NewDefaultOld(v)
|
||||
f := NewDefault(v)
|
||||
|
||||
c.Assert(f.Source, qt.IsNotNil)
|
||||
c.Assert(f.Source, hqt.IsSameType, new(afero.OsFs))
|
||||
|
Reference in New Issue
Block a user