File tree Expand file tree Collapse file tree
vortex-array/src/array/vtable
vortex-python/src/arrays/py Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -291,29 +291,3 @@ pub fn patches_child_name(idx: usize) -> &'static str {
291291 }
292292}
293293
294- /// vtable! macro — adds a deprecated `to_array()` helper on legacy array types.
295- ///
296- /// Two forms:
297- /// - `vtable!(Foo)` — short for `vtable!(Foo, Foo)`
298- /// - `vtable!(Foo, FooVT)` — where `FooArray` is the inner struct name
299- #[ macro_export]
300- macro_rules! vtable {
301- ( $V: ident) => {
302- $crate:: vtable!( $V, $V) ;
303- } ;
304- // Legacy form: FooArray is the inner struct name, no type alias generated.
305- ( $Base: ident, $VT: ident) => {
306- $crate:: aliases:: paste:: paste! {
307- impl [ <$Base Array >] {
308- #[ deprecated( note = "use `.into_array()` (owned) or `.clone().into_array()` (ref) to make clones explicit" ) ]
309- pub fn to_array( & self ) -> $crate:: ArrayRef
310- where
311- Self : Clone + $crate:: IntoArray ,
312- {
313- use $crate:: IntoArray ;
314- self . clone( ) . into_array( )
315- }
316- }
317- }
318- } ;
319- }
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ use vortex::array::VTable;
1919use vortex:: array:: ValidityVTable ;
2020use vortex:: array:: buffer:: BufferHandle ;
2121use vortex:: array:: validity:: Validity ;
22- use vortex:: array:: vtable;
2322use vortex:: dtype:: DType ;
2423use vortex:: error:: VortexResult ;
2524use vortex:: error:: vortex_bail;
@@ -30,8 +29,6 @@ use vortex::session::VortexSession;
3029
3130use crate :: arrays:: py:: PythonArray ;
3231
33- vtable ! ( Python , PythonVTable ) ;
34-
3532/// Wrapper struct encapsulating a Python encoding.
3633#[ derive( Debug , Clone ) ]
3734pub struct PythonVTable {
You can’t perform that action at this time.
0 commit comments