core/rawdb: lint

This commit is contained in:
Marius van der Wijden 2025-03-14 16:58:42 +01:00
parent 365175f70c
commit da9ebaea44

View file

@ -361,22 +361,6 @@ func (f *Freezer) Sync() error {
return nil return nil
} }
// splitTables splits tables in header and non-header tables
func splitTables(tables map[string]*freezerTable) (map[string]*freezerTable, map[string]*freezerTable) {
var (
headTables = make(map[string]*freezerTable)
otherTables = make(map[string]*freezerTable)
)
for kind, table := range tables {
if kind == ChainFreezerHeaderTable || kind == ChainFreezerHashTable {
headTables[kind] = table
} else {
otherTables[kind] = table
}
}
return headTables, otherTables
}
// validate checks that every table has the same boundary. // validate checks that every table has the same boundary.
// Used instead of `repair` in readonly mode. // Used instead of `repair` in readonly mode.
func (f *Freezer) validate() error { func (f *Freezer) validate() error {