diff options
Diffstat (limited to 'tpl/images')
-rw-r--r-- | tpl/images/images.go | 3 | ||||
-rw-r--r-- | tpl/images/images_test.go | 11 |
2 files changed, 0 insertions, 14 deletions
diff --git a/tpl/images/images.go b/tpl/images/images.go index 6700603dd..127057853 100644 --- a/tpl/images/images.go +++ b/tpl/images/images.go @@ -43,9 +43,6 @@ type Namespace struct { deps *deps.Deps } -// Namespace returns a pointer to the current namespace instance. -func (ns *Namespace) Namespace() *Namespace { return ns } - // Config returns the image.Config for the specified path relative to the // working directory. func (ns *Namespace) Config(path interface{}) (image.Config, error) { diff --git a/tpl/images/images_test.go b/tpl/images/images_test.go index 740a469af..964d3fb91 100644 --- a/tpl/images/images_test.go +++ b/tpl/images/images_test.go @@ -80,17 +80,6 @@ var configTests = []struct { {path: "", expect: false}, } -func TestNamespace(t *testing.T) { - t.Parallel() - - v := viper.New() - v.Set("workingDir", "/a/b") - - ns := New(&deps.Deps{Fs: hugofs.NewMem(v)}) - - assert.Equal(t, ns, ns.Namespace(), "object pointers should match") -} - func TestNSConfig(t *testing.T) { t.Parallel() |