all: Remove dead code

This commit is contained in:
Albert 2016-10-13 13:51:16 +02:00 committed by Bjørn Erik Pedersen
parent 766c82a6bb
commit 8fa871a05f
4 changed files with 0 additions and 33 deletions

View file

@ -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)},