@@ -58,7 +58,7 @@ impl DictData {
5858 /// This should be called only when you can guarantee the invariants checked
5959 /// by the safe `DictArray::try_new` constructor are valid, for example when
6060 /// you are filtering or slicing an existing valid `DictArray`.
61- pub unsafe fn new_unchecked ( _codes : ArrayRef , _values : ArrayRef ) -> Self {
61+ pub unsafe fn new_unchecked ( ) -> Self {
6262 Self {
6363 all_values_referenced : false ,
6464 }
@@ -97,12 +97,12 @@ impl DictData {
9797 /// of the `values` array. Otherwise, this constructor returns an error.
9898 ///
9999 /// It is an error to provide a nullable `codes` with non-nullable `values`.
100- pub ( crate ) fn try_new ( codes : ArrayRef , values : ArrayRef ) -> VortexResult < Self > {
100+ pub ( crate ) fn try_new ( codes : ArrayRef , _values : ArrayRef ) -> VortexResult < Self > {
101101 if !codes. dtype ( ) . is_int ( ) {
102102 vortex_bail ! ( MismatchedTypes : "int" , codes. dtype( ) ) ;
103103 }
104104
105- Ok ( unsafe { Self :: new_unchecked ( codes , values ) } )
105+ Ok ( unsafe { Self :: new_unchecked ( ) } )
106106 }
107107}
108108
@@ -249,7 +249,7 @@ impl Array<Dict> {
249249 . dtype ( )
250250 . union_nullability ( codes. dtype ( ) . nullability ( ) ) ;
251251 let len = codes. len ( ) ;
252- let data = unsafe { DictData :: new_unchecked ( codes . clone ( ) , values . clone ( ) ) } ;
252+ let data = unsafe { DictData :: new_unchecked ( ) } ;
253253 unsafe {
254254 Array :: from_parts_unchecked (
255255 ArrayParts :: new ( Dict , dtype, len, data) . with_slots ( vec ! [ Some ( codes) , Some ( values) ] ) ,
0 commit comments