From a04d4e63eb4de3cf0da6cc8cafbb938c8a706471 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 19 Apr 2014 17:39:11 +0200 Subject: [PATCH] Remove not-yet-implemented methods from CharacterData. This speeds up a web-platform-tests run by about 45 seconds (of 11-12 minutes) by avoiding three timeouts. --- src/components/script/dom/characterdata.rs | 12 ------------ .../script/dom/webidls/CharacterData.webidl | 6 ------ 2 files changed, 18 deletions(-) diff --git a/src/components/script/dom/characterdata.rs b/src/components/script/dom/characterdata.rs index 6bb25f6b5cb..f7b1afabde0 100644 --- a/src/components/script/dom/characterdata.rs +++ b/src/components/script/dom/characterdata.rs @@ -59,18 +59,6 @@ impl CharacterData { self.data.push_str(arg); Ok(()) } - - pub fn InsertData(&mut self, _offset: u32, _arg: DOMString) -> ErrorResult { - fail!("CharacterData::InsertData() is unimplemented") - } - - pub fn DeleteData(&mut self, _offset: u32, _count: u32) -> ErrorResult { - fail!("CharacterData::DeleteData() is unimplemented") - } - - pub fn ReplaceData(&mut self, _offset: u32, _count: u32, _arg: DOMString) -> ErrorResult { - fail!("CharacterData::ReplaceData() is unimplemented") - } } impl Reflectable for CharacterData { diff --git a/src/components/script/dom/webidls/CharacterData.webidl b/src/components/script/dom/webidls/CharacterData.webidl index 00085fcc6b0..88c6c135a0c 100644 --- a/src/components/script/dom/webidls/CharacterData.webidl +++ b/src/components/script/dom/webidls/CharacterData.webidl @@ -17,12 +17,6 @@ interface CharacterData : Node { DOMString substringData(unsigned long offset, unsigned long count); [Throws] void appendData(DOMString data); - [Throws] - void insertData(unsigned long offset, DOMString data); - [Throws] - void deleteData(unsigned long offset, unsigned long count); - [Throws] - void replaceData(unsigned long offset, unsigned long count, DOMString data); }; //CharacterData implements ChildNode;