marathon-core/ruby-selenium-webdriver/src/main/resources/gems/selenium-webdriver-3.6.0/lib/selenium/webdriver/common/logger.rb
#
# Marks code as deprecated with/without replacement.
#
# @param [String] old
# @param [String, nil] new
#
Marks code as deprecated with/without replacement.
Marks code as deprecated with / without replacement .
def deprecate(old, new = nil)
        message = "[DEPRECATION] #{old} is deprecated"
        message << if new
                     ". Use #{new} instead."
                   else
                     ' and will be removed in the next releases.'
                   end
        warn message
      end
def deprecate ( old , new = nil ) message = "[DEPRECATION] #{old} is deprecated" message << if new ". Use #{new} instead." else ' and will be removed in the next releases.' end warn message end
Marks code as deprecated with/without replacement.
Marks code as deprecated with / without replacement .
old
new
None