Remove unused imports

This commit is contained in:
Matthias Beyer 2017-01-25 18:32:04 +01:00
parent 1e3193ebb2
commit 2aa54b820f
3 changed files with 1 additions and 16 deletions

View file

@ -19,13 +19,9 @@
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::error::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, Hash, NilClass, VerifiedObject};
use uuid::Uuid;
use libimagstore::store::FileLockEntry as FLE;
use libimagstore::store::EntryHeader; use libimagstore::store::EntryHeader;
use libimagstore::store::EntryContent; use libimagstore::store::EntryContent;
use libimagstore::store::Entry; use libimagstore::store::Entry;
@ -35,7 +31,6 @@ use ruby_utils::IntoToml;
use toml_utils::IntoRuby; use toml_utils::IntoRuby;
use util::Wrap; use util::Wrap;
use util::Unwrap; use util::Unwrap;
use cache::RUBY_STORE_CACHE;
use cache::StoreHandle; use cache::StoreHandle;
pub struct FileLockEntryHandle(StoreHandle, StoreId); pub struct FileLockEntryHandle(StoreHandle, StoreId);
@ -132,7 +127,6 @@ methods!(
fn r_set_header(hdr: Hash) -> NilClass { fn r_set_header(hdr: Hash) -> NilClass {
use ruby_utils::IntoToml; use ruby_utils::IntoToml;
use toml_utils::IntoRuby;
use toml::Value; use toml::Value;
let entryheader = match typecheck!(hdr or return NilClass::new()).into_toml() { let entryheader = match typecheck!(hdr or return NilClass::new()).into_toml() {
@ -160,7 +154,6 @@ methods!(
fn r_set_content(ctt: RString) -> NilClass { fn r_set_content(ctt: RString) -> NilClass {
use ruby_utils::IntoToml; use ruby_utils::IntoToml;
use toml_utils::IntoRuby;
use toml::Value; use toml::Value;
let content = match typecheck!(ctt).into_toml() { let content = match typecheck!(ctt).into_toml() {

View file

@ -34,7 +34,6 @@ methods!(
use std::env::var as env_var; use std::env::var as env_var;
use env_logger; use env_logger;
use log; use log;
use log::{Log, LogLevel, LogRecord, LogMetadata};
use log::LogLevelFilter; use log::LogLevelFilter;
let debug = match debug { let debug = match debug {

View file

@ -20,13 +20,9 @@
use libimagstore::store::Store; use libimagstore::store::Store;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
use std::error::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::Wrap;
use util::Unwrap; use util::Unwrap;
@ -160,13 +156,10 @@ methods!(
// //
fn new(store_debugging: Boolean, rtp: RString) -> AnyObject { fn new(store_debugging: Boolean, rtp: RString) -> AnyObject {
use std::path::PathBuf; use std::path::PathBuf;
use libimagerror::into::IntoError;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
use libimagerror::trace::trace_error_dbg; use libimagerror::trace::trace_error_dbg;
use libimagerror::trace::trace_error_exit;
use libimagrt::configuration::ConfigErrorKind; use libimagrt::configuration::ConfigErrorKind;
use libimagrt::configuration::Configuration; use libimagrt::configuration::Configuration;
use libimagrt::error::RuntimeErrorKind;
use libimagstore::error::StoreErrorKind; use libimagstore::error::StoreErrorKind;
use libimagstore::hook::Hook; use libimagstore::hook::Hook;
use libimagstore::hook::position::HookPosition as HP; use libimagstore::hook::position::HookPosition as HP;