prune dead code

This commit is contained in:
Andy Arthur
2022-10-12 11:29:00 -07:00
parent 0f55b04583
commit c8716dc18c
2 changed files with 0 additions and 28 deletions

View File

@@ -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 {

View File

@@ -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
}