mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
all: Remove dead code
This commit is contained in:
parent
766c82a6bb
commit
8fa871a05f
4 changed files with 0 additions and 33 deletions
|
@ -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)},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue