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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/service_desk_email.rb')
-rw-r--r--lib/gitlab/service_desk_email.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/gitlab/service_desk_email.rb b/lib/gitlab/service_desk_email.rb
deleted file mode 100644
index bc49efafdda..00000000000
--- a/lib/gitlab/service_desk_email.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-module Gitlab
- module ServiceDeskEmail
- class << self
- include Gitlab::Email::Common
-
- def config
- Gitlab.config.service_desk_email
- end
-
- def key_from_address(address)
- wildcard_address = config&.address
- return unless wildcard_address
-
- Gitlab::IncomingEmail.key_from_address(address, wildcard_address: wildcard_address)
- end
-
- def address_for_key(key)
- return if config.address.blank?
-
- config.address.sub(WILDCARD_PLACEHOLDER, key)
- end
- end
- end
-end