diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-07-11 17:50:20 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-07-30 14:21:48 +0200 |
commit | b68c791b8de22633d5a5940a64787403d26fc775 (patch) | |
tree | 8d7a626492d738c70f2b33a6705232ce447b747a | |
parent | ebcbe2ff7da04abb2aa98c4b797975c48af74bbb (diff) | |
download | servo-b68c791b8de22633d5a5940a64787403d26fc775.tar.gz servo-b68c791b8de22633d5a5940a64787403d26fc775.zip |
Remove unimplemented PeriodicWave stub
-rw-r--r-- | components/script/dom/baseaudiocontext.rs | 1 | ||||
-rw-r--r-- | components/script/dom/mod.rs | 1 | ||||
-rw-r--r-- | components/script/dom/periodicwave.rs | 40 | ||||
-rw-r--r-- | components/script/dom/webidls/OscillatorNode.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/PeriodicWave.webidl | 21 |
5 files changed, 2 insertions, 63 deletions
diff --git a/components/script/dom/baseaudiocontext.rs b/components/script/dom/baseaudiocontext.rs index 4acb4d9f1d9..a6ba9e2fa02 100644 --- a/components/script/dom/baseaudiocontext.rs +++ b/components/script/dom/baseaudiocontext.rs @@ -46,6 +46,7 @@ use std::sync::{Arc, Mutex}; use task_source::TaskSource; use uuid::Uuid; +#[allow(dead_code)] pub enum BaseAudioContextOptions { AudioContext(RealTimeAudioContextOptions), OfflineAudioContext(OfflineAudioContextOptions), diff --git a/components/script/dom/mod.rs b/components/script/dom/mod.rs index 39273745417..d58314f9af3 100644 --- a/components/script/dom/mod.rs +++ b/components/script/dom/mod.rs @@ -414,7 +414,6 @@ pub mod performanceobserver; pub mod performanceobserverentrylist; pub mod performancepainttiming; pub mod performancetiming; -pub mod periodicwave; pub mod permissions; pub mod permissionstatus; pub mod plugin; diff --git a/components/script/dom/periodicwave.rs b/components/script/dom/periodicwave.rs deleted file mode 100644 index 4158e250e5c..00000000000 --- a/components/script/dom/periodicwave.rs +++ /dev/null @@ -1,40 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -use dom::baseaudiocontext::BaseAudioContext; -use dom::bindings::codegen::Bindings::PeriodicWaveBinding; -use dom::bindings::codegen::Bindings::PeriodicWaveBinding::PeriodicWaveOptions; -use dom::bindings::error::Fallible; -use dom::bindings::reflector::{Reflector, reflect_dom_object}; -use dom::bindings::root::DomRoot; -use dom::window::Window; -use dom_struct::dom_struct; - -#[dom_struct] -pub struct PeriodicWave { - reflector_: Reflector, -} - -impl PeriodicWave { - pub fn new_inherited() -> PeriodicWave { - PeriodicWave { - reflector_: Reflector::new(), - } - } - - #[allow(unrooted_must_root)] - pub fn new(window: &Window) -> DomRoot<PeriodicWave> { - let periodic_wave = PeriodicWave::new_inherited(); - reflect_dom_object(Box::new(periodic_wave), window, PeriodicWaveBinding::Wrap) - } - - pub fn Constructor( - window: &Window, - _context: &BaseAudioContext, - _options: &PeriodicWaveOptions, - ) -> Fallible<DomRoot<PeriodicWave>> { - // TODO. - Ok(PeriodicWave::new(&window)) - } -} diff --git a/components/script/dom/webidls/OscillatorNode.webidl b/components/script/dom/webidls/OscillatorNode.webidl index 84c6de45967..958921bb810 100644 --- a/components/script/dom/webidls/OscillatorNode.webidl +++ b/components/script/dom/webidls/OscillatorNode.webidl @@ -18,7 +18,7 @@ dictionary OscillatorOptions : AudioNodeOptions { OscillatorType type = "sine"; float frequency = 440; float detune = 0; - PeriodicWave periodicWave; + // PeriodicWave periodicWave; }; [Exposed=Window, diff --git a/components/script/dom/webidls/PeriodicWave.webidl b/components/script/dom/webidls/PeriodicWave.webidl deleted file mode 100644 index 63ec5981235..00000000000 --- a/components/script/dom/webidls/PeriodicWave.webidl +++ /dev/null @@ -1,21 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -/* - * The origin of this IDL file is - * https://webaudio.github.io/web-audio-api/#periodicwave - */ - -dictionary PeriodicWaveConstraints { - boolean disableNormalization = false; -}; - -dictionary PeriodicWaveOptions : PeriodicWaveConstraints { - sequence<float> real; - sequence<float> imag; -}; - -[Exposed=Window, - Constructor(BaseAudioContext context, optional PeriodicWaveOptions options)] -interface PeriodicWave { -}; |