Skip to content

Commit

Permalink
remove deprecated ShardMaxImportantMatch TotalMaxImportantMatch
Browse files Browse the repository at this point in the history
Both of these fields have been unread and mark deprecated for a while.

Test Plan: go test
  • Loading branch information
keegancsmith committed Feb 25, 2024
1 parent 1c158f9 commit 6eab8ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -892,12 +892,6 @@ type SearchOptions struct {
// be set to 1 to find all repositories containing a result.
ShardRepoMaxMatchCount int

// Deprecated: this field is not read anymore.
ShardMaxImportantMatch int

// Deprecated: this field is not read anymore.
TotalMaxImportantMatch int

// Abort the search after this much time has passed.
MaxWallTime time.Duration

Expand Down Expand Up @@ -986,8 +980,6 @@ func (s *SearchOptions) String() string {
addInt("ShardMaxMatchCount", s.ShardMaxMatchCount)
addInt("TotalMaxMatchCount", s.TotalMaxMatchCount)
addInt("ShardRepoMaxMatchCount", s.ShardRepoMaxMatchCount)
addInt("ShardMaxImportantMatch", s.ShardMaxImportantMatch)
addInt("TotalMaxImportantMatch", s.TotalMaxImportantMatch)
addInt("MaxDocDisplayCount", s.MaxDocDisplayCount)
addInt("MaxMatchDisplayCount", s.MaxMatchDisplayCount)
addInt("NumContextLines", s.NumContextLines)
Expand Down
3 changes: 0 additions & 3 deletions api_proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,6 @@ func TestProtoRoundtrip(t *testing.T) {
t.Run("SearchOptions", func(t *testing.T) {
f := func(f1 *SearchOptions) bool {
if f1 != nil {
// Ignore deprecated and unimplemented fields
f1.ShardMaxImportantMatch = 0
f1.TotalMaxImportantMatch = 0
f1.SpanContext = nil
}
p1 := f1.ToProto()
Expand Down

0 comments on commit 6eab8ec

Please sign in to comment.