Skip to content

Commit 3c7a96a

Browse files
authored
chore: remove some leftover todos (#580)
1 parent 0bd0bf4 commit 3c7a96a

File tree

5 files changed

+0
-25
lines changed

5 files changed

+0
-25
lines changed

lib/appium_lib_core/common/base/driver.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ def add_command(method:, url:, name:, &block)
193193
raise ::Appium::Core::Error::ArgumentError, "Available method is either #{AVAILABLE_METHODS}"
194194
end
195195

196-
# TODO: Remove this logger before Appium 2.0 release
197-
::Appium::Logger.info '[Experimental] this method is experimental for Appium 2.0. This interface may change.'
198-
199196
@bridge.add_command method: method, url: url, name: name, &block
200197
end
201198

lib/appium_lib_core/driver.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,6 @@ def start_driver(server_url: nil,
430430
@http_client.delete_additional_header Appium::Core::Base::Http::RequestHeaders::KEYS[:idempotency]
431431
end
432432

433-
# TODO: this method can be removed after releasing Appium 2.0, and after a while
434-
# since Appium 2.0 reuqires 'automationName'. This method won't help anymore then.
435-
# If "automationName" is set only server side, this method set "automationName" attribute into @automation_name.
436-
# Since @automation_name is set only client side before start_driver is called.
437-
set_automation_name_if_nil
438-
439433
set_implicit_wait_by_default(@default_wait)
440434

441435
@driver
@@ -694,16 +688,6 @@ def convert_downcase(value)
694688
value.is_a?(Symbol) ? value.downcase : value.downcase.strip.intern
695689
end
696690

697-
# @private
698-
def set_automation_name_if_nil
699-
return unless @automation_name.nil?
700-
701-
automation_name = if @driver.capabilities['automationName']
702-
@driver.capabilities['automationName'].downcase.strip.intern
703-
end
704-
@automation_name = convert_to_symbol automation_name
705-
end
706-
707691
def get_cap(name)
708692
name_with_prefix = "#{::Appium::Core::Base::Bridge::APPIUM_PREFIX}#{name}"
709693
@caps[convert_to_symbol name] ||

sig/lib/appium_lib_core/driver.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ module Appium
193193
def set_automation_name: () -> Symbol?
194194

195195
def convert_downcase: (Symbol value) -> Symbol
196-
197-
def set_automation_name_if_nil: () -> Symbol?
198196
end
199197
end
200198
end

test/functional/android/driver_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ def test_mobile_perform_action
8585
new_element = @driver.find_element :xpath, '//*[@focused="true"]'
8686
assert_equal 'Right is always right', new_element.text
8787
end
88-
89-
# TODO: call @driver.quit after tests
9088
end
9189
end
9290
# rubocop:enable Style/ClassVars

test/functional/ios/driver_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ def test_batch_combination_ruby_script
178178
assert_equal(rect.width, r.result[1]['width'])
179179
assert_equal(rect.height, r.result[1]['height'])
180180
end
181-
182-
# TODO: call @driver.quit after tests
183181
end
184182
end
185183
# rubocop:enable Style/ClassVars

0 commit comments

Comments
 (0)