refactor and remove useless stuff

This commit is contained in:
Henrique Dias committed 2017-06-27 14:49:46 +01:00
1 parent 6e04c97bb9
commit 06c4e4d58b
4 files changed
+6 -17

No files matched your search

+1 -4
View File
@@ -7,8 +7,6 @@ import (
"path"
"sort"
"strings"
"github.com/mholt/caddy/caddyhttp/httpserver"
)
// A listing is the context used to fill out a template.
@@ -28,8 +26,7 @@ type listing struct {
// And which order.
Order string
// If ≠0 then Items have been limited to that many elements.
ItemsLimitedTo int
httpserver.Context `json:"-"`
ItemsLimitedTo int
}
// getListing gets the information about a specific directory and its files.