mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-14 11:10:40 -05:00
prune dead code
This commit is contained in:
@@ -145,17 +145,6 @@ func (ntm nomsTableMap) Iter(ctx context.Context, cb func(name string, addr hash
|
||||
})
|
||||
}
|
||||
|
||||
func (r nomsRvStorage) GetSuperSchemaMap(context.Context, types.ValueReader) (types.Map, bool, error) {
|
||||
v, found, err := r.valueSt.MaybeGet(superSchemasKey)
|
||||
if err != nil {
|
||||
return types.Map{}, false, err
|
||||
}
|
||||
if !found {
|
||||
return types.Map{}, false, nil
|
||||
}
|
||||
return v.(types.Map), true, nil
|
||||
}
|
||||
|
||||
func (r nomsRvStorage) GetForeignKeys(context.Context, types.ValueReader) (types.Value, bool, error) {
|
||||
v, found, err := r.valueSt.MaybeGet(foreignKeyKey)
|
||||
if err != nil {
|
||||
@@ -167,14 +156,6 @@ func (r nomsRvStorage) GetForeignKeys(context.Context, types.ValueReader) (types
|
||||
return v.(types.Map), true, nil
|
||||
}
|
||||
|
||||
func (r nomsRvStorage) SetSuperSchemaMap(ctx context.Context, vrw types.ValueReadWriter, m types.Map) (rvStorage, error) {
|
||||
st, err := r.valueSt.Set(superSchemasKey, m)
|
||||
if err != nil {
|
||||
return nomsRvStorage{}, err
|
||||
}
|
||||
return nomsRvStorage{st}, nil
|
||||
}
|
||||
|
||||
func (r nomsRvStorage) EditTablesMap(ctx context.Context, vrw types.ValueReadWriter, ns tree.NodeStore, edits []tableEdit) (rvStorage, error) {
|
||||
m, err := r.GetTablesMap(ctx, vrw, ns)
|
||||
if err != nil {
|
||||
|
||||
@@ -125,12 +125,3 @@ func simpleString(s string) string {
|
||||
reg := regexp.MustCompile("[^a-zA-Z0-9]+")
|
||||
return strings.ToLower(reg.ReplaceAllString(s, ""))
|
||||
}
|
||||
|
||||
func NomsKindsFromSchema(sch Schema) []types.NomsKind {
|
||||
var nks []types.NomsKind
|
||||
_ = sch.GetAllCols().Iter(func(tag uint64, col Column) (stop bool, err error) {
|
||||
nks = append(nks, col.Kind)
|
||||
return false, nil
|
||||
})
|
||||
return nks
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user