From 84e6ddb41f581064c9bb66c34341ec7248f1b333 Mon Sep 17 00:00:00 2001 From: Ahmad Hassan Date: Thu, 24 May 2018 14:16:31 +0200 Subject: Remove unneeded gitaly_migrate function --- lib/backup/repository.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index 847d14d01c3..aa3c3a35764 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -222,13 +222,5 @@ module Backup def display_repo_path(project) project.hashed_storage?(:repository) ? "#{project.full_path} (#{project.disk_path})" : project.full_path end - - def gitaly_migrate(method, status: Gitlab::GitalyClient::MigrationStatus::OPT_IN, &block) - Gitlab::GitalyClient.migrate(method, status: status, &block) - rescue GRPC::NotFound, GRPC::BadStatus => e - # Old Popen code returns [Error, output] to the caller, so we - # need to do the same here... - raise Error, e - end end end -- cgit v1.2.1