Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-08-18 17:38:51 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-08-19 09:18:18 +0300
commitc2b6939dab57a733b084e2283f38375288598c1f (patch)
tree7bbcaf29540a41ae338c506ac341089d925b1aba /ruby
parentb3bb31655c67e0fcad90de1c31de58686849a393 (diff)
ref: Remove unused FindRefName RPC
The FindRefName RPC hasn't been used by Rails since fa0b4321 (Added validation to AfterCreateService, 2020-03-02), which is more than a year ago. While the stub to call this RPC still existed in Rails until ec8ca3cdb44 (repository: Remove `#ref_name_for_sha`, 2021-08-18), it didn't have any callers at all anymore. Let's remove this RPC call in Gitaly.
Diffstat (limited to 'ruby')
-rw-r--r--ruby/proto/gitaly/ref_pb.rb10
-rw-r--r--ruby/proto/gitaly/ref_services_pb.rb2
2 files changed, 0 insertions, 12 deletions
diff --git a/ruby/proto/gitaly/ref_pb.rb b/ruby/proto/gitaly/ref_pb.rb
index ac2b224df..8591226cc 100644
--- a/ruby/proto/gitaly/ref_pb.rb
+++ b/ruby/proto/gitaly/ref_pb.rb
@@ -35,14 +35,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "gitaly.FindAllTagNamesResponse" do
repeated :names, :bytes, 1
end
- add_message "gitaly.FindRefNameRequest" do
- optional :repository, :message, 1, "gitaly.Repository"
- optional :commit_id, :string, 2
- optional :prefix, :bytes, 3
- end
- add_message "gitaly.FindRefNameResponse" do
- optional :name, :bytes, 1
- end
add_message "gitaly.FindLocalBranchesRequest" do
optional :repository, :message, 1, "gitaly.Repository"
optional :sort_by, :enum, 2, "gitaly.FindLocalBranchesRequest.SortBy"
@@ -227,8 +219,6 @@ module Gitaly
FindAllBranchNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesResponse").msgclass
FindAllTagNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesRequest").msgclass
FindAllTagNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesResponse").msgclass
- FindRefNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefNameRequest").msgclass
- FindRefNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefNameResponse").msgclass
FindLocalBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest").msgclass
FindLocalBranchesRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest.SortBy").enummodule
FindLocalBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesResponse").msgclass
diff --git a/ruby/proto/gitaly/ref_services_pb.rb b/ruby/proto/gitaly/ref_services_pb.rb
index b27542e28..b358107b4 100644
--- a/ruby/proto/gitaly/ref_services_pb.rb
+++ b/ruby/proto/gitaly/ref_services_pb.rb
@@ -17,8 +17,6 @@ module Gitaly
rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
- # Find a Ref matching the given constraints. Response may be empty.
- rpc :FindRefName, ::Gitaly::FindRefNameRequest, ::Gitaly::FindRefNameResponse
# Return a stream so we can divide the response in chunks of branches
rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse)