summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-18 12:58:19 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-18 12:58:19 +0000
commitb7a190399fbbf7fd7755e9588adeebbb04433fef (patch)
treedeaf1b957751a356e6e70fe33ac78963ca30ff49 /lib/redmine
parent72dcb6a570dde4c90434d6397804a59ce8ae95f2 (diff)
downloadredmine-b7a190399fbbf7fd7755e9588adeebbb04433fef.tar.gz
redmine-b7a190399fbbf7fd7755e9588adeebbb04433fef.zip
Remove deprecated methods in Repository and AbstractAdapter (#39558).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22457 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 8e74086c5..0baf2962c 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -167,12 +167,6 @@ module Redmine
path.end_with?('/') ? path : "#{path}/"
end
- def with_trailling_slash(path)
- ActiveSupport::Deprecation.warn 'Redmine::Scm::Adapters::AbstractAdapter#with_trailling_slash is ' \
- 'deprecated and will be removed in Redmine 6.0. Please use #with_trailing_slash instead.'
- with_trailing_slash(path)
- end
-
def without_leading_slash(path)
path ||= ''
path.gsub(%r{^/+}, '')
@@ -183,12 +177,6 @@ module Redmine
path.end_with?('/') ? path[0..-2] : path
end
- def without_trailling_slash(path)
- ActiveSupport::Deprecation.warn 'Redmine::Scm::Adapters::AbstractAdapter#without_trailling_slash is ' \
- 'deprecated and will be removed in Redmine 6.0. Please use #without_trailing_slash instead.'
- without_trailing_slash(path)
- end
-
def valid_name?(name)
return true if name.nil?
return true if name.is_a?(Integer) && name > 0