[js] Remove the unnecessary normalizeProxyConfiguration function
@@ -459,39 +459,6 @@ function findInProgramFiles(file) {
});
}
-function normalizeProxyConfiguration(config) {
- if ('manual' === config.proxyType) {
- if (config.ftpProxy && !config.ftpProxyPort) {
- let hostAndPort = net.splitHostAndPort(config.ftpProxy);
- config.ftpProxy = hostAndPort.host;
- config.ftpProxyPort = hostAndPort.port;
- }
-
- if (config.httpProxy && !config.httpProxyPort) {
- let hostAndPort = net.splitHostAndPort(config.httpProxy);
- config.httpProxy = hostAndPort.host;
- config.httpProxyPort = hostAndPort.port;
- }
-
- if (config.sslProxy && !config.sslProxyPort) {
- let hostAndPort = net.splitHostAndPort(config.sslProxy);
- config.sslProxy = hostAndPort.host;
- config.sslProxyPort = hostAndPort.port;
- }
-
- if (config.socksProxy && !config.socksProxyPort) {
- let hostAndPort = net.splitHostAndPort(config.socksProxy);
- config.socksProxy = hostAndPort.host;
- config.socksProxyPort = hostAndPort.port;
- }
- } else if ('pac' === config.proxyType) {
- if (config.proxyAutoconfigUrl && !config.pacUrl) {
- config.proxyAutoconfigUrl = config.proxyAutoconfigUrl;
- }
- }
- return config;
-}
-
/** @enum {string} */
const ExtensionCommand = {
@@ -605,12 +572,6 @@ class Driver extends webdriver.WebDriver {
caps = new capabilities.Capabilities(opt_config);
}
- if (caps.has(capabilities.Capability.PROXY)) {
- let proxy =
- normalizeProxyConfiguration(caps.get(capabilities.Capability.PROXY));
- caps.set(capabilities.Capability.PROXY, proxy);
- }
-
let executor;
let onQuit;
