From 3601054d2b0900fa6fb49332a4097609e14ddc8a Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Sun, 13 Mar 2016 16:34:01 +0600 Subject: [PATCH] rb: Remove unused PhantomJS port option --- rb/lib/selenium/webdriver/phantomjs/bridge.rb | 3 +-- rb/lib/selenium/webdriver/phantomjs/service.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rb/lib/selenium/webdriver/phantomjs/bridge.rb b/rb/lib/selenium/webdriver/phantomjs/bridge.rb index d205a565785af..670e7e00a1995 100644 --- a/rb/lib/selenium/webdriver/phantomjs/bridge.rb +++ b/rb/lib/selenium/webdriver/phantomjs/bridge.rb @@ -33,9 +33,8 @@ def initialize(opts = {}) url = opts.delete(:url) else args = opts.delete(:args) || caps['phantomjs.cli.args'] - port = opts.delete(:port) - @service = Service.default_service(port) + @service = Service.default_service @service.start(args) url = @service.uri diff --git a/rb/lib/selenium/webdriver/phantomjs/service.rb b/rb/lib/selenium/webdriver/phantomjs/service.rb index 8199735248158..a479e3af0ca6e 100644 --- a/rb/lib/selenium/webdriver/phantomjs/service.rb +++ b/rb/lib/selenium/webdriver/phantomjs/service.rb @@ -42,7 +42,7 @@ def self.executable_path ) end - def self.default_service(port = nil) + def self.default_service new executable_path, DEFAULT_PORT end