diff --git a/src/common/src/util/column_index_mapping.rs b/src/common/src/util/column_index_mapping.rs index 2b1ef2ffa66c8..2c12dc47efb11 100644 --- a/src/common/src/util/column_index_mapping.rs +++ b/src/common/src/util/column_index_mapping.rs @@ -41,16 +41,6 @@ impl ColIndexMapping { Self { target_size, map } } - /// Create a partial mapping which maps the subscripts range `(0..map.len())` to the - /// corresponding element. **This method is not recommended**, please use `with_target_size` instead, see for more information** - pub fn without_target_size(map: Vec>) -> Self { - let target_size = match map.iter().filter_map(|x| *x).max_by_key(|x| *x) { - Some(target_max) => target_max + 1, - None => 0, - }; - Self { target_size, map } - } - pub fn into_parts(self) -> (Vec>, usize) { (self.map, self.target_size) }