From 1df949e69e60fac287dcf670d01c1db8c8d5a729 Mon Sep 17 00:00:00 2001 From: Craig Swank Date: Fri, 9 Aug 2019 06:41:14 -0600 Subject: [PATCH] more unused code --- fields.go | 10 ---------- internal/dremel/dremel.go | 18 ------------------ 2 files changed, 28 deletions(-) diff --git a/fields.go b/fields.go index d1e0abf..38b6b63 100644 --- a/fields.go +++ b/fields.go @@ -193,16 +193,6 @@ func (f *OptionalField) DoWrite(w io.Writer, meta *Metadata, vals []byte, count return err } -func (f *OptionalField) NilCount() *int64 { - var out int64 - for _, v := range f.Defs { - if v == 0 { - out++ - } - } - return &out -} - // DoRead is called by all optional fields. It reads the definition levels and uses // them to interpret the raw data. func (f *OptionalField) DoRead(r io.ReadSeeker, pg Page) (io.Reader, []int, error) { diff --git a/internal/dremel/dremel.go b/internal/dremel/dremel.go index 5cdf213..286c475 100644 --- a/internal/dremel/dremel.go +++ b/internal/dremel/dremel.go @@ -31,21 +31,3 @@ func Read(f fields.Field) string { return readRequired(f) } - -func isRepeated(f fields.Field) bool { - for _, o := range f.RepetitionTypes { - if o == fields.Repeated { - return true - } - } - return false -} - -func isOptional(f fields.Field) bool { - for _, o := range f.RepetitionTypes { - if o == fields.Optional { - return true - } - } - return false -}