mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
remove dead code (deadcode)
This commit is contained in:
parent
0fae552577
commit
6ff792c164
3 changed files with 0 additions and 45 deletions
37
field.go
37
field.go
|
|
@ -1298,43 +1298,6 @@ func (b *bsiGroup) validate() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func encodeBSIGroup(b *bsiGroup) *internal.BSIGroup {
|
||||
if b == nil {
|
||||
return nil
|
||||
}
|
||||
return &internal.BSIGroup{
|
||||
Name: b.Name,
|
||||
Type: b.Type,
|
||||
Min: int64(b.Min),
|
||||
Max: int64(b.Max),
|
||||
}
|
||||
}
|
||||
|
||||
func decodeBSIGroup(b *internal.BSIGroup) *bsiGroup {
|
||||
if b == nil {
|
||||
return nil
|
||||
}
|
||||
return &bsiGroup{
|
||||
Name: b.Name,
|
||||
Type: b.Type,
|
||||
Min: b.Min,
|
||||
Max: b.Max,
|
||||
}
|
||||
}
|
||||
|
||||
// importBitSet represents slices of row and column ids.
|
||||
// This is used to sort data during import.
|
||||
type importBitSet struct {
|
||||
rowIDs, columnIDs []uint64
|
||||
}
|
||||
|
||||
func (p importBitSet) Swap(i, j int) {
|
||||
p.rowIDs[i], p.rowIDs[j] = p.rowIDs[j], p.rowIDs[i]
|
||||
p.columnIDs[i], p.columnIDs[j] = p.columnIDs[j], p.columnIDs[i]
|
||||
}
|
||||
func (p importBitSet) Len() int { return len(p.rowIDs) }
|
||||
func (p importBitSet) Less(i, j int) bool { return p.rowIDs[i] < p.rowIDs[j] }
|
||||
|
||||
// Cache types.
|
||||
const (
|
||||
CacheTypeLRU = "lru"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
|
|
@ -1004,5 +1003,3 @@ func UvarintSize(x uint64) (i int) {
|
|||
}
|
||||
return i + 1
|
||||
}
|
||||
|
||||
func hexdump(b []byte) { os.Stderr.Write([]byte(hex.Dump(b))) }
|
||||
|
|
|
|||
5
view.go
5
view.go
|
|
@ -34,11 +34,6 @@ const (
|
|||
viewBSIGroupPrefix = "bsig_"
|
||||
)
|
||||
|
||||
// isValidView returns true if name is valid.
|
||||
func isValidView(name string) bool {
|
||||
return name == ViewStandard
|
||||
}
|
||||
|
||||
// View represents a container for field data.
|
||||
type View struct {
|
||||
mu sync.RWMutex
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue