From a10750009bf8147b1aab58bb9833ca314e593d43 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Mon, 14 May 2018 17:36:31 -0500 Subject: [PATCH] remove decodeColumnAttrSet(s) (unused) --- pilosa.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/pilosa.go b/pilosa.go index 84d7169a7..f29356ef6 100644 --- a/pilosa.go +++ b/pilosa.go @@ -98,15 +98,6 @@ func encodeColumnAttrSets(a []*ColumnAttrSet) []*internal.ColumnAttrSet { return other } -// decodeColumnAttrSets converts a from its internal representation. -func decodeColumnAttrSets(a []*internal.ColumnAttrSet) []*ColumnAttrSet { - other := make([]*ColumnAttrSet, len(a)) - for i := range a { - other[i] = decodeColumnAttrSet(a[i]) - } - return other -} - // encodeColumnAttrSet converts set into its internal representation. func encodeColumnAttrSet(set *ColumnAttrSet) *internal.ColumnAttrSet { return &internal.ColumnAttrSet{ @@ -115,23 +106,6 @@ func encodeColumnAttrSet(set *ColumnAttrSet) *internal.ColumnAttrSet { } } -// decodeColumnAttrSet converts b from its internal representation. -func decodeColumnAttrSet(pb *internal.ColumnAttrSet) *ColumnAttrSet { - set := &ColumnAttrSet{ - ID: pb.ID, - } - - if len(pb.Attrs) > 0 { - set.Attrs = make(map[string]interface{}, len(pb.Attrs)) - for _, attr := range pb.Attrs { - k, v := decodeAttr(attr) - set.Attrs[k] = v - } - } - - return set -} - // TimeFormat is the go-style time format used to parse string dates. const TimeFormat = "2006-01-02T15:04"