Skip to content

Commit

Permalink
DanielWagnerHall: Removing unused method
Browse files Browse the repository at this point in the history
r13282
  • Loading branch information
illicitonion committed Aug 8, 2011
1 parent 994dd8d commit 2b7ed81
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -893,21 +893,6 @@ public WebDriver frame(WebElement frameElement) {
return HtmlUnitDriver.this;
}

private WebWindow getWindowByNumericFrameId(String currentFrameId, HtmlPage page) {
try {
final int index = Integer.parseInt(currentFrameId);
return page.getFrames().get(index);
}
catch (final NumberFormatException e) {
// nothing - fall through to returning null.
}
catch (final IndexOutOfBoundsException e) { // frames may have an int as name
// nothing - fall through to returning null.
}

return null;
}

public WebDriver window(String windowId) {
try {
WebWindow window = webClient.getWebWindowByName(windowId);
Expand Down

0 comments on commit 2b7ed81

Please sign in to comment.