Remove unused Github Importer code
It seems that the Github importer was created with two possible code paths in mind, parallel processing and non-parallel processing. The non-parallel is not being used, so this MR aims to remove the unused code.
References
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/github_import/client.rb#L36
-
GithubImport::Client
is always initialized with the defaultparallel: true
:
$ ag '\bGithubImport::Client.new'
lib/tasks/import.rake
107: @client = Gitlab::GithubImport::Client.new(token)
lib/gitlab/github_import/client.rb
11: # client = GithubImport::Client.new('hunter2')
$ ag '\bGithubImport.new_client_for'
app/workers/concerns/gitlab/github_import/stage_methods.rb
10: client = GithubImport.new_client_for(project)
app/workers/concerns/gitlab/github_import/rescheduling_methods.rb
17: client = GithubImport.new_client_for(project, parallel: true)
Edited by 🤖 GitLab Bot 🤖