Skip to content

Commit 1686b50

Browse files
authored
indexserver: remove unused GetRepoRank (#604)
I think this is our older ranking stuff. Test Plan: go test
1 parent 63241cb commit 1686b50

File tree

5 files changed

+126
-395
lines changed

5 files changed

+126
-395
lines changed

cmd/zoekt-sourcegraph-indexserver/index_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ var splitargs = cmpopts.AcyclicTransformer("splitargs", func(cmd string) []strin
874874
type mockGRPCClient struct {
875875
mockSearchConfiguration func(context.Context, *proto.SearchConfigurationRequest, ...grpc.CallOption) (*proto.SearchConfigurationResponse, error)
876876
mockList func(context.Context, *proto.ListRequest, ...grpc.CallOption) (*proto.ListResponse, error)
877-
mockRepositoryRank func(context.Context, *proto.RepositoryRankRequest, ...grpc.CallOption) (*proto.RepositoryRankResponse, error)
878877
mockDocumentRanks func(context.Context, *proto.DocumentRanksRequest, ...grpc.CallOption) (*proto.DocumentRanksResponse, error)
879878
mockUpdateIndexStatus func(context.Context, *proto.UpdateIndexStatusRequest, ...grpc.CallOption) (*proto.UpdateIndexStatusResponse, error)
880879
}
@@ -895,14 +894,6 @@ func (m *mockGRPCClient) List(ctx context.Context, in *proto.ListRequest, opts .
895894
return nil, fmt.Errorf("mock RPC List not implemented")
896895
}
897896

898-
func (m *mockGRPCClient) RepositoryRank(ctx context.Context, in *proto.RepositoryRankRequest, opts ...grpc.CallOption) (*proto.RepositoryRankResponse, error) {
899-
if m.mockRepositoryRank != nil {
900-
return m.mockRepositoryRank(ctx, in, opts...)
901-
}
902-
903-
return nil, fmt.Errorf("mock RPC RepositoryRank not implemented")
904-
}
905-
906897
func (m *mockGRPCClient) DocumentRanks(ctx context.Context, in *proto.DocumentRanksRequest, opts ...grpc.CallOption) (*proto.DocumentRanksResponse, error) {
907898
if m.mockDocumentRanks != nil {
908899
return m.mockDocumentRanks(ctx, in, opts...)

0 commit comments

Comments
 (0)