summaryrefslogtreecommitdiffstats
path: root/hugolib/site_url_test.go
diff options
context:
space:
mode:
authorAlbert <albertnigma@gmail.com>2016-10-13 13:51:16 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-13 13:51:16 +0200
commit8fa871a05f46295beef1f460bca28cb21ce42d2b (patch)
tree606e1fa4e7fd2494b6670defbc924594312aa478 /hugolib/site_url_test.go
parent766c82a6bbf4423a037beb2b1967f720080e4658 (diff)
all: Remove dead code
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r--hugolib/site_url_test.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go
index 522732cc2..f53d4492d 100644
--- a/hugolib/site_url_test.go
+++ b/hugolib/site_url_test.go
@@ -23,7 +23,6 @@ import (
"github.com/spf13/hugo/hugofs"
"github.com/spf13/hugo/source"
- "github.com/spf13/hugo/target"
"github.com/spf13/viper"
)
@@ -44,17 +43,6 @@ func must(err error) {
}
}
-type InMemoryAliasTarget struct {
- target.HTMLRedirectAlias
- files map[string][]byte
-}
-
-func (t *InMemoryAliasTarget) Publish(label string, permalink template.HTML) (err error) {
- f, _ := t.Translate(label)
- t.files[f] = []byte("--dummy text--")
- return
-}
-
var urlFakeSource = []source.ByteSource{
{Name: filepath.FromSlash("content/blue/doc1.md"), Content: []byte(slugDoc1)},
{Name: filepath.FromSlash("content/blue/doc2.md"), Content: []byte(slugDoc2)},