Skip to content

Commit

Permalink
more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cswank committed Aug 9, 2019
1 parent 9d58b9e commit 1df949e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
10 changes: 0 additions & 10 deletions fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
18 changes: 0 additions & 18 deletions internal/dremel/dremel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 1df949e

Please sign in to comment.