From dbe4a18dae9218b8e982cdff023aae0a9e555d3f Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Thu, 21 Apr 2016 22:32:35 +0900 Subject: [PATCH] removing useless code and imports --- src/core/analyzer.rs | 3 --- src/core/postings.rs | 1 - src/core/reader.rs | 1 - 3 files changed, 5 deletions(-) diff --git a/src/core/analyzer.rs b/src/core/analyzer.rs index 4d3d27123..6f87f8563 100644 --- a/src/core/analyzer.rs +++ b/src/core/analyzer.rs @@ -10,9 +10,6 @@ pub struct TokenIter<'a> { fn append_char_lowercase(c: char, term_buffer: &mut String) { term_buffer.push(c.to_ascii_lowercase()); - // for c_lower in c.to_lowercase() { - // term_buffer.push(c_lower); - // } } pub trait StreamingIterator<'a, T> { diff --git a/src/core/postings.rs b/src/core/postings.rs index 4fe8a0828..981cbfe16 100644 --- a/src/core/postings.rs +++ b/src/core/postings.rs @@ -1,6 +1,5 @@ use core::schema::DocId; use std::ptr; -use std::collections::BTreeMap; use core::schema::Term; use core::fstmap::FstMapBuilder; use core::index::Segment; diff --git a/src/core/reader.rs b/src/core/reader.rs index cc68b42b0..40518e26c 100644 --- a/src/core/reader.rs +++ b/src/core/reader.rs @@ -9,7 +9,6 @@ use core::schema::DocId; use core::index::SegmentComponent; use core::simdcompression::Decoder; use std::io; -use std::iter; use std::str; use core::postings::TermInfo; use core::fstmap::FstMap;