mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
script: remove unused function.
This commit is contained in:
parent
f5d16fc069
commit
6edefb829c
2 changed files with 0 additions and 15 deletions
|
@ -132,20 +132,6 @@ impl <T: FromJSValConvertible + JSTraceable> FromJSValConvertible for RootedTrac
|
|||
}
|
||||
}
|
||||
|
||||
/// Convert `id` to a `DOMString`, assuming it is string-valued.
|
||||
///
|
||||
/// Handling of invalid UTF-16 in strings depends on the relevant option.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// Panics if `id` is not string-valued.
|
||||
pub fn string_jsid_to_string(cx: *mut JSContext, id: HandleId) -> DOMString {
|
||||
unsafe {
|
||||
assert!(RUST_JSID_IS_STRING(id));
|
||||
jsstring_to_str(cx, RUST_JSID_TO_STRING(id))
|
||||
}
|
||||
}
|
||||
|
||||
/// Convert `id` to a `DOMString`. Returns `None` if `id` is not a string or
|
||||
/// integer.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue