Skip to content

Commit e1f221a

Browse files
committed
removed unused function
1 parent 70053e6 commit e1f221a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

core/json/json_vtab/mod.rs

-14
Original file line numberDiff line numberDiff line change
@@ -201,20 +201,6 @@ impl ValExt for Val {
201201
_ => Value::null(),
202202
}
203203
}
204-
205-
fn key_value_count(&self) -> usize {
206-
match self {
207-
Val::Array(v) => v.iter().map(|val| val.key_value_count()).sum::<usize>() + 1,
208-
Val::Object(v) => {
209-
v.iter()
210-
.map(|(_, val)| val.key_value_count())
211-
.sum::<usize>()
212-
+ 1
213-
}
214-
Val::Removed => unreachable!(),
215-
_ => 1,
216-
}
217-
}
218204
}
219205

220206
impl Display for Val {

0 commit comments

Comments
 (0)