Remove the now superflous defaultExtension

And some other unsed fields and methods.
This commit is contained in:
Bjørn Erik Pedersen
2017-03-25 16:09:56 +01:00
parent 15b64d51da
commit ee75e2999b
12 changed files with 4 additions and 88 deletions

View File

@@ -104,28 +104,6 @@ Content of the file goes Here
Some text
`
simplePageNoLayout = `---
title: simple_no_layout
---
No Layout called out`
simplePageLayoutFoobar = `---
title: simple layout foobar
layout: foobar
---
Layout foobar`
simplePageTypeFoobar = `---
type: foobar
---
type foobar`
simplePageTypeLayout = `---
type: barfoo
layout: buzfoo
---
type and layout set`
simplePageWithSummaryDelimiter = `---
title: Simple
---
@@ -1089,10 +1067,6 @@ func TestSectionEvaluation(t *testing.T) {
}
}
func L(s ...string) []string {
return s
}
func TestSliceToLower(t *testing.T) {
t.Parallel()
tests := []struct {
@@ -1140,8 +1114,6 @@ func TestPagePaths(t *testing.T) {
for _, test := range tests {
cfg, fs := newTestCfg()
cfg.Set("defaultExtension", "html")
if test.hasPermalink {
cfg.Set("permalinks", siteParmalinksSetting)
}
@@ -1387,20 +1359,6 @@ func TestChompBOM(t *testing.T) {
checkPageTitle(t, p, "Simple")
}
func listEqual(left, right []string) bool {
if len(left) != len(right) {
return false
}
for i := range left {
if left[i] != right[i] {
return false
}
}
return true
}
// TODO(bep) this may be useful for other tests.
func compareObjects(a interface{}, b interface{}) bool {
aStr := strings.Split(fmt.Sprintf("%v", a), "")