From 9e7e3c19cfb6f7679a5917deaec0bcd609447f94 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sun, 8 Dec 2024 10:52:32 -0800 Subject: [PATCH] feat!: remove deprecated quit_driver --- lib/appium_lib_core/driver.rb | 14 -------------- sig/lib/appium_lib_core/driver.rbs | 2 -- 2 files changed, 16 deletions(-) diff --git a/lib/appium_lib_core/driver.rb b/lib/appium_lib_core/driver.rb index 4cb25bce..e4b35ddb 100644 --- a/lib/appium_lib_core/driver.rb +++ b/lib/appium_lib_core/driver.rb @@ -498,20 +498,6 @@ def set_implicit_wait_by_default(wait) {} end - # [Deprecated] Quits the driver. This method is the same as @driver.quit - # @return [void] - # - # @example - # - # @core.quit_driver - # - def quit_driver - ::Appium::Logger.warn('[DEPRECATION] quit_driver will be removed. Please use @driver.quit instead.') - @driver.quit - rescue # rubocop:disable Style/RescueStandardError - nil - end - # Returns the server's version info. This method calls +driver.remote_status+ internally # # @return [Hash] diff --git a/sig/lib/appium_lib_core/driver.rbs b/sig/lib/appium_lib_core/driver.rbs index 7222fb96..1c9f7b14 100644 --- a/sig/lib/appium_lib_core/driver.rbs +++ b/sig/lib/appium_lib_core/driver.rbs @@ -160,8 +160,6 @@ module Appium def set_implicit_wait_by_default: (untyped wait) -> untyped - def quit_driver: () -> void - def appium_server_version: () -> Hash[String, String] private