diff --git a/read.go b/read.go index 39e77a037..d795f10d1 100644 --- a/read.go +++ b/read.go @@ -150,24 +150,6 @@ func (r *reader) readTOC(toc *indexTOC) error { } } } - } else { - // TODO: Remove this branch when ReaderMinFeatureVersion >= 10 - - secs := toc.sections() - - if len(secs) != int(sectionCount) { - secs = toc.sectionsNext() - } - - if len(secs) != int(sectionCount) { - return fmt.Errorf("section count mismatch: got %d want %d", sectionCount, len(secs)) - } - - for _, s := range secs { - if err := s.read(r); err != nil { - return err - } - } } return nil } diff --git a/toc.go b/toc.go index f1019cb62..86e66fe3a 100644 --- a/toc.go +++ b/toc.go @@ -63,7 +63,7 @@ const WriteMinFeatureVersion = 10 // ReadMinFeatureVersion constrains backwards compatibility by refusing to // load a file with a FeatureVersion below it. -const ReadMinFeatureVersion = 8 +const ReadMinFeatureVersion = 10 // 17: compound shard (multi repo) const NextIndexFormatVersion = 17