Skip to content

Commit ab81608

Browse files
chore: remove old todos related to wt8::CodePoint (#875)
1 parent 6922bf6 commit ab81608

File tree

2 files changed

+0
-2
lines changed
  • nova_vm/src/ecmascript/types/language/string
  • small_string

2 files changed

+0
-2
lines changed

nova_vm/src/ecmascript/types/language/string/data.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ impl StringHeapData {
144144
}
145145
}
146146

147-
// TODO: This should return a wtf8::CodePoint.
148147
pub fn char_code_at(&self, idx: usize) -> CodePoint {
149148
let (utf8_idx, take_latter_half): (usize, bool) = if idx != 0 {
150149
match self.index_mapping() {

small_string/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ impl SmallString {
134134
unreachable!("Could not find code point index");
135135
}
136136

137-
// TODO: This should return a wtf8::CodePoint.
138137
pub fn char_code_at(&self, idx: usize) -> CodePoint {
139138
if self.is_ascii() {
140139
// SAFETY: ASCII is valid UTF-8.

0 commit comments

Comments
 (0)