diff --git a/nova_vm/src/ecmascript/types/language/string/data.rs b/nova_vm/src/ecmascript/types/language/string/data.rs index 52ff24c87..83473f894 100644 --- a/nova_vm/src/ecmascript/types/language/string/data.rs +++ b/nova_vm/src/ecmascript/types/language/string/data.rs @@ -144,7 +144,6 @@ impl StringHeapData { } } - // TODO: This should return a wtf8::CodePoint. pub fn char_code_at(&self, idx: usize) -> CodePoint { let (utf8_idx, take_latter_half): (usize, bool) = if idx != 0 { match self.index_mapping() { diff --git a/small_string/lib.rs b/small_string/lib.rs index 786f80459..93be707ba 100644 --- a/small_string/lib.rs +++ b/small_string/lib.rs @@ -134,7 +134,6 @@ impl SmallString { unreachable!("Could not find code point index"); } - // TODO: This should return a wtf8::CodePoint. pub fn char_code_at(&self, idx: usize) -> CodePoint { if self.is_ascii() { // SAFETY: ASCII is valid UTF-8.