Skip to content

Commit 5e7041c

Browse files
committed
rb: Remove private API instead of deprecating it
The changes going to be released in Selenium 3.0 which may introduce backwards-incompatibility.
1 parent 7652b57 commit 5e7041c

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

rb/lib/selenium/webdriver/chrome/service.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ module Chrome
2828
class Service < WebDriver::Service
2929
DEFAULT_PORT = 9515
3030

31-
def self.executable_path
32-
warn "Selenium::WebDriver::Chrome::Service.executable_path is deprecated, please use Selenium::WebDriver::Chrome.driver_path instead"
33-
Chrome.driver_path
34-
end
35-
3631
def self.default_service(*extra_args)
3732
new Chrome.driver_path, DEFAULT_PORT, *extra_args
3833
end

rb/lib/selenium/webdriver/edge/service.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ module Edge
2828
class Service
2929
DEFAULT_PORT = 17556
3030

31-
def self.executable_path
32-
warn "Selenium::WebDriver::Edge::Service.executable_path is deprecated, please use Selenium::WebDriver::Edge.driver_path instead"
33-
Edge.driver_path
34-
end
35-
3631
def self.default_service(*extra_args)
3732
new Edge.driver_path, DEFAULT_PORT, *extra_args
3833
end

rb/lib/selenium/webdriver/firefox/service.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ module Firefox
2828
class Service < WebDriver::Service
2929
DEFAULT_PORT = 4444
3030

31-
def self.executable_path
32-
warn "Selenium::WebDriver::Firefox::Service.executable_path is deprecated, please use Selenium::WebDriver::Firefox.driver_path instead"
33-
Firefox.driver_path
34-
end
35-
3631
def self.default_service(*extra_args)
3732
new Firefox.driver_path, DEFAULT_PORT, *extra_args
3833
end

rb/lib/selenium/webdriver/phantomjs/service.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ module PhantomJS
2828
class Service < WebDriver::Service
2929
DEFAULT_PORT = 8910
3030

31-
def self.executable_path
32-
warn "Selenium::WebDriver::PhantomJS::Service.executable_path is deprecated, please use Selenium::WebDriver::PhantomJS.path instead"
33-
PhantomJS.path
34-
end
35-
3631
def self.default_service(*extra_args)
3732
new PhantomJS.path, DEFAULT_PORT, *extra_args
3833
end

0 commit comments

Comments
 (0)