Skip to content

Commit

Permalink
DanielWagnerHall: Fixing iOS build by removing deprecated methods, wh…
Browse files Browse the repository at this point in the history
…ich rely on javascript which no longer exists

r15385
  • Loading branch information
illicitonion committed Jan 4, 2012
1 parent feb3ece commit 9cdba56
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions iphone/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ js_fragment_header(name = "atoms",
"//javascript/webdriver/atoms:is_displayed:ios",
"//javascript/webdriver/atoms:is_enabled:ios",
"//javascript/webdriver/atoms:is_selected:ios",
"//javascript/webdriver/atoms:set_selected:ios",
"//javascript/webdriver/atoms:submit:ios",
"//javascript/webdriver/atoms:toggle:ios",
"//javascript/webdriver/atoms:type:ios",
],
out = "iphone/src/objc/atoms.h",
Expand Down
10 changes: 0 additions & 10 deletions iphone/src/objc/Element.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@
// This method is only valid on checkboxes and radio buttons.
- (NSNumber *)isChecked;

// Set the element's checked property.
// This method is only valid on checkboxes and radio buttons.
- (void)setChecked:(NSDictionary*)ignored;

// Toggle the element's checked property.
// This method is only valid on checkboxes and radio buttons.
// Dictionary parameters are passed in by REST service, but are redundant
// with directory ID and are thus ignored.
- (void)toggleSelected;

// Is the element enabled?
- (NSNumber *)isEnabled;

Expand Down
13 changes: 0 additions & 13 deletions iphone/src/objc/Element.mm
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,6 @@ - (NSNumber *)isChecked {
withArgs:[NSArray arrayWithObject:[self idDictionary]]];
}

// This method is only valid on option elements, checkboxes and radio buttons.
- (void)setChecked:(NSDictionary*)ignored {
[self executeAtom:webdriver::atoms::SET_SELECTED
withArgs:[NSArray arrayWithObjects:
[self idDictionary], [NSNumber numberWithBool:YES], nil]];
}

// Like |checked| above, we should check that the element is valid.
- (void)toggleSelected {
[self executeAtom:webdriver::atoms::TOGGLE
withArgs:[NSArray arrayWithObject:[self idDictionary]]];
}

- (NSNumber *)isEnabled {
return (NSNumber*) [self
executeAtom:webdriver::atoms::IS_ENABLED
Expand Down

0 comments on commit 9cdba56

Please sign in to comment.