mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove unused support for passing extra arguments for timers.
This commit is contained in:
parent
674fd893cb
commit
3ecfb9197f
2 changed files with 1 additions and 7 deletions
|
@ -111,7 +111,6 @@ pub struct TimerData {
|
|||
pub handle: i32,
|
||||
pub is_interval: bool,
|
||||
pub funval: JSVal,
|
||||
pub args: ~[JSVal],
|
||||
}
|
||||
|
||||
impl Window {
|
||||
|
@ -248,7 +247,6 @@ impl Window {
|
|||
handle: handle,
|
||||
is_interval: is_interval,
|
||||
funval: callback,
|
||||
args: ~[],
|
||||
};
|
||||
let ScriptChan(ref chan) = chan;
|
||||
chan.send(FireTimerMsg(page_id, data));
|
||||
|
|
|
@ -751,11 +751,7 @@ impl ScriptTask {
|
|||
window.get_mut().active_timers.remove(&timer_data.handle);
|
||||
}
|
||||
|
||||
let this_value = if timer_data.args.len() > 0 {
|
||||
fail!("NYI")
|
||||
} else {
|
||||
window.reflector().get_jsobject()
|
||||
};
|
||||
let this_value = window.reflector().get_jsobject();
|
||||
|
||||
// TODO: Support extra arguments. This requires passing a `*JSVal` array as `argv`.
|
||||
let rval = NullValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue