@@ -30,7 +30,6 @@ use re_log_types::{EntityPathFilter, ResolvedTimeRange};
30
30
use re_sdk:: { ComponentName , EntityPath , StoreId , StoreKind } ;
31
31
use re_sorbet:: SorbetColumnDescriptors ;
32
32
33
- #[ cfg( feature = "remote" ) ]
34
33
use crate :: remote:: PyRemoteRecording ;
35
34
36
35
/// Register the `rerun.dataframe` module.
@@ -575,7 +574,6 @@ pub struct PyRecording {
575
574
#[ derive( Clone ) ]
576
575
pub enum PyRecordingHandle {
577
576
Local ( std:: sync:: Arc < Py < PyRecording > > ) ,
578
- #[ cfg( feature = "remote" ) ]
579
577
Remote ( std:: sync:: Arc < Py < PyRemoteRecording > > ) ,
580
578
}
581
579
@@ -648,7 +646,6 @@ impl PyRecordingView {
648
646
/// This schema will only contain the columns that are included in the view via
649
647
/// the view contents.
650
648
fn schema ( & self , py : Python < ' _ > ) -> PyResult < PySchema > {
651
- #![ allow( clippy:: unnecessary_wraps) ] // In case of feature != "remote"
652
649
match & self . recording {
653
650
PyRecordingHandle :: Local ( recording) => {
654
651
let borrowed: PyRef < ' _ , PyRecording > = recording. borrow ( py) ;
@@ -663,7 +660,6 @@ impl PyRecordingView {
663
660
schema : query_handle. view_contents ( ) . clone ( ) ,
664
661
} )
665
662
}
666
- #[ cfg( feature = "remote" ) ]
667
663
PyRecordingHandle :: Remote ( _) => Err :: < _ , PyErr > ( PyRuntimeError :: new_err (
668
664
"Schema is not implemented for remote recordings yet." ,
669
665
) ) ,
@@ -751,7 +747,6 @@ impl PyRecordingView {
751
747
RecordBatchIterator :: new ( query_handle. into_batch_iter ( ) . map ( Ok ) , schema) ;
752
748
Ok ( PyArrowType ( Box :: new ( reader) ) )
753
749
}
754
- #[ cfg( feature = "remote" ) ]
755
750
PyRecordingHandle :: Remote ( recording) => {
756
751
let borrowed_recording = recording. borrow ( py) ;
757
752
let mut borrowed_client = borrowed_recording. client . borrow_mut ( py) ;
@@ -842,7 +837,6 @@ impl PyRecordingView {
842
837
843
838
Ok ( PyArrowType ( Box :: new ( reader) ) )
844
839
}
845
- #[ cfg( feature = "remote" ) ]
846
840
PyRecordingHandle :: Remote ( recording) => {
847
841
let borrowed_recording = recording. borrow ( py) ;
848
842
let mut borrowed_client = borrowed_recording. client . borrow_mut ( py) ;
0 commit comments