Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused unsafe blocks. #7

Merged
merged 1 commit into from May 10, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Remove unused unsafe blocks.

  • Loading branch information
metajack committed May 10, 2013
commit a4b651b8f774e1d3566c81484890a6ca5d747256
@@ -906,8 +906,6 @@ pub mod select {
ua_default_for_property: &'self fn(property: uint32_t, hint: *mut css_hint) -> css_error,
}



priv fn with_untyped_handler<N: VoidPtrLike, H: CssSelectHandler<N>, R>(handler: &H, f: &fn(&UntypedHandler) -> R) -> R {
unsafe {
let untyped_handler = UntypedHandler {
@@ -968,12 +966,12 @@ pub mod select {
},
node_is_root: |node: *c_void, match_: *mut bool| -> css_error {
let hlnode = VoidPtrLike::from_void_ptr(node);
unsafe { *match_ = handler.node_is_root(&hlnode) }
*match_ = handler.node_is_root(&hlnode);
CSS_OK
},
node_is_link: |node: *c_void, match_: *mut bool| -> css_error {
let hlnode = VoidPtrLike::from_void_ptr(node);
unsafe { *match_ = handler.node_is_link(&hlnode) }
*match_ = handler.node_is_link(&hlnode);
CSS_OK
},
ua_default_for_property: |property: uint32_t, hint: *mut css_hint| -> css_error {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.