diff --git a/dotnet/src/webdriver/Firefox/FirefoxBinary.cs b/dotnet/src/webdriver/Firefox/FirefoxBinary.cs index af006e970637a..4aa5e82026c22 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxBinary.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxBinary.cs @@ -219,28 +219,6 @@ public void WaitForProcessExit() this.process.WaitForExit(); } - /// - /// Initializes the binary with the specified profile. - /// - /// The to use to initialize the binary. - public void Clean(FirefoxProfile profile) - { - if (profile == null) - { - throw new ArgumentNullException("profile", "profile cannot be null"); - } - - this.StartProfile(profile, "-silent"); - try - { - this.WaitForProcessExit(); - } - catch (ThreadInterruptedException e) - { - throw new WebDriverException("Thread was interrupted", e); - } - } - /// /// Stops the execution of this , terminating the process if necessary. /// diff --git a/dotnet/src/webdriver/Firefox/FirefoxDriverServer.cs b/dotnet/src/webdriver/Firefox/FirefoxDriverServer.cs index 2c89ab44e73a6..a8f7b2791a623 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxDriverServer.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxDriverServer.cs @@ -89,7 +89,6 @@ public void Start() int portToUse = DetermineNextFreePort(this.host, this.profile.Port); this.profile.Port = portToUse; this.profile.WriteToDisk(); - this.process.Clean(this.profile); this.process.StartProfile(this.profile, new string[] { "-foreground" }); this.SetAddress(portToUse);