Skip to content

Commit

Permalink
refactor: remove unused code (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Mar 1, 2024
1 parent bec40c6 commit 702ba88
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/rust/src/concat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::series::RPolarsSeries;
use extendr_api::prelude::*;
use polars::lazy::dsl;
use polars::prelude as pl;
use polars_core;
use polars_core::functions as pl_functions;
use std::result::Result;

Expand Down
1 change: 0 additions & 1 deletion src/rust/src/concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use polars::prelude as pl;
use crate::rdataframe::RPolarsSeries;
use crate::rpolarserr::*;
use extendr_api::prelude::*;
use extendr_api::Conversions;
use std::result::Result;

// define any possible signature of R lambdas
Expand Down
1 change: 0 additions & 1 deletion src/rust/src/info.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use extendr_api::prelude::*;
use polars;

#[extendr]
fn cargo_rpolars_feature_info() -> List {
Expand Down
1 change: 0 additions & 1 deletion src/rust/src/lazy/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::concurrent::{
};
use crate::conversion::strings_to_smartstrings;

use crate::lazy::dsl::RPolarsExpr;
use crate::lazy::dsl::*;

use crate::rdataframe::RPolarsDataFrame as RDF;
Expand Down
2 changes: 1 addition & 1 deletion src/rust/src/lazy/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::utils::wrappers::null_to_opt;
use crate::utils::{r_error_list, r_ok_list, r_result_list, robj_to_binary_vec};
use crate::utils::{try_f64_into_i64, try_f64_into_u32, try_f64_into_usize};
use crate::CONFIG;
use extendr_api::{extendr, prelude::*, rprintln, Deref, DerefMut, Rinternals};
use extendr_api::{extendr, prelude::*, rprintln, Deref, DerefMut};
use pl::PolarsError as pl_error;
use pl::{
BinaryNameSpaceImpl, Duration, DurationMethods, IntoSeries, RollingGroupOptions, SetOperation,
Expand Down
2 changes: 1 addition & 1 deletion src/rust/src/rdataframe/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use extendr_api::{extendr, prelude::*, rprintln, Rinternals};
use extendr_api::{extendr, prelude::*, rprintln};
use polars::prelude::{self as pl, IntoLazy, SerWriter};
use std::result::Result;
pub mod read_csv;
Expand Down
2 changes: 1 addition & 1 deletion src/rust/src/rdataframe/read_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use polars::io::RowIndex;

//use crate::utils::wrappers::*;
use crate::utils::wrappers::{null_to_opt, Wrap};
use extendr_api::{extendr, prelude::*, Rinternals};
use extendr_api::{extendr, prelude::*};
use polars::prelude as pl;
use std::result::Result;

Expand Down
2 changes: 1 addition & 1 deletion src/rust/src/rdataframe/read_ndjson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::rpolarserr::*;
use polars::io::RowIndex;

//use crate::utils::wrappers::*;
use extendr_api::{extendr, prelude::*, Rinternals};
use extendr_api::{extendr, prelude::*};
use polars::prelude as pl;
use polars::prelude::LazyFileListReader;
use std::result::Result;
Expand Down
1 change: 0 additions & 1 deletion src/rust/src/rlib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::lazy::dsl::{RPolarsExpr, RPolarsProtoExprArray};
use crate::rdataframe::RPolarsDataFrame;
use crate::robj_to;
use crate::rpolarserr::{rdbg, RResult};
use crate::series::RPolarsSeries;
use crate::utils::extendr_concurrent::{ParRObj, ThreadCom};
use crate::utils::robj_to_rchoice;
Expand Down
3 changes: 1 addition & 2 deletions src/rust/src/series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ use crate::rpolarserr::RResult;
use crate::utils::wrappers::null_to_opt;
use crate::utils::{r_error_list, r_result_list};

use extendr_api::{extendr, prelude::*, rprintln, Rinternals};
use extendr_api::{extendr, prelude::*, rprintln};
use pl::SeriesMethods;
use polars::datatypes::*;
use polars::prelude as pl;
use polars::prelude::ArgAgg;
use polars::prelude::IntoSeries;
pub const R_INT_NA_ENC: i32 = -2147483648;
use crate::rpolarserr::polars_to_rpolars_err;
use std::convert::TryInto;
use std::result::Result;

#[derive(Debug, Clone)]
Expand Down
1 change: 0 additions & 1 deletion src/rust/src/utils/extendr_concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use extendr_api::prelude::*;
use std::sync::RwLock;
use std::thread;

use flume;
use flume::{Receiver, Sender};

pub use state::InitCell;
Expand Down

0 comments on commit 702ba88

Please sign in to comment.