diff --git a/libimagruby/src/entry.rs b/libimagruby/src/entry.rs index 4614feab..e7a61bef 100644 --- a/libimagruby/src/entry.rs +++ b/libimagruby/src/entry.rs @@ -19,13 +19,9 @@ use std::collections::BTreeMap; use std::error::Error; -use std::ops::Deref; -use std::ops::DerefMut; use ruru::{Class, Object, AnyObject, Boolean, RString, VM, Hash, NilClass, VerifiedObject}; -use uuid::Uuid; -use libimagstore::store::FileLockEntry as FLE; use libimagstore::store::EntryHeader; use libimagstore::store::EntryContent; use libimagstore::store::Entry; @@ -35,7 +31,6 @@ use ruby_utils::IntoToml; use toml_utils::IntoRuby; use util::Wrap; use util::Unwrap; -use cache::RUBY_STORE_CACHE; use cache::StoreHandle; pub struct FileLockEntryHandle(StoreHandle, StoreId); @@ -132,7 +127,6 @@ methods!( fn r_set_header(hdr: Hash) -> NilClass { use ruby_utils::IntoToml; - use toml_utils::IntoRuby; use toml::Value; let entryheader = match typecheck!(hdr or return NilClass::new()).into_toml() { @@ -160,7 +154,6 @@ methods!( fn r_set_content(ctt: RString) -> NilClass { use ruby_utils::IntoToml; - use toml_utils::IntoRuby; use toml::Value; let content = match typecheck!(ctt).into_toml() { diff --git a/libimagruby/src/imag.rs b/libimagruby/src/imag.rs index a59610b2..e471fcff 100644 --- a/libimagruby/src/imag.rs +++ b/libimagruby/src/imag.rs @@ -34,7 +34,6 @@ methods!( use std::env::var as env_var; use env_logger; use log; - use log::{Log, LogLevel, LogRecord, LogMetadata}; use log::LogLevelFilter; let debug = match debug { diff --git a/libimagruby/src/store.rs b/libimagruby/src/store.rs index 4c3a49a2..dbf1555e 100644 --- a/libimagruby/src/store.rs +++ b/libimagruby/src/store.rs @@ -20,13 +20,9 @@ use libimagstore::store::Store; use libimagerror::trace::trace_error; use std::error::Error; -use std::ops::Deref; -use std::ops::DerefMut; -use ruru::{Class, Object, AnyObject, Boolean, RString, VM, Hash, NilClass, VerifiedObject}; +use ruru::{Class, Object, AnyObject, Boolean, RString, VM, NilClass, VerifiedObject}; -use ruby_utils::IntoToml; -use toml_utils::IntoRuby; use util::Wrap; use util::Unwrap; @@ -160,13 +156,10 @@ methods!( // fn new(store_debugging: Boolean, rtp: RString) -> AnyObject { use std::path::PathBuf; - use libimagerror::into::IntoError; use libimagerror::trace::trace_error; use libimagerror::trace::trace_error_dbg; - use libimagerror::trace::trace_error_exit; use libimagrt::configuration::ConfigErrorKind; use libimagrt::configuration::Configuration; - use libimagrt::error::RuntimeErrorKind; use libimagstore::error::StoreErrorKind; use libimagstore::hook::Hook; use libimagstore::hook::position::HookPosition as HP;