summaryrefslogtreecommitdiff
path: root/management/editor
diff options
context:
space:
mode:
Diffstat (limited to 'management/editor')
-rw-r--r--management/editor/editor.go6
-rw-r--r--management/editor/elements.go2
2 files changed, 0 insertions, 8 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 6b55a38..7194c27 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -13,12 +13,6 @@ type Editable interface {
MarshalEditor() ([]byte, error)
}
-// Sortable ensures data is sortable by time
-type Sortable interface {
- Time() int64
- Touch() int64
-}
-
// Mergeable allows external post content to be approved and published through
// the public-facing API
type Mergeable interface {
diff --git a/management/editor/elements.go b/management/editor/elements.go
index 4a8ae55..bb2cb3f 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -242,8 +242,6 @@ func Select(fieldName string, p interface{}, attrs, options map[string]string) [
// find the field value in p to determine if an option is pre-selected
fieldVal := valueFromStructField(fieldName, p)
- // may need to alloc a buffer, as we will probably loop through options
- // and append the []byte from domElement() called for each option
attrs["class"] = "browser-default"
sel := newElement("select", attrs["label"], fieldName, p, attrs)
var opts []*element