From 5a7249c935d52e79db2301a6cccfd28dff9bf38e Mon Sep 17 00:00:00 2001 From: Haitao Li Date: Fri, 11 Nov 2011 00:41:42 +0800 Subject: Cleanup unused imports --- src/comp/syntax/parse/eval.rs | 2 +- src/comp/syntax/parse/lexer.rs | 3 +-- src/comp/syntax/parse/parser.rs | 1 - src/comp/syntax/parse/token.rs | 4 +--- 4 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index e4b60c4c21e..03c65d79e75 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -1,5 +1,5 @@ -import std::{str, option, result, io, fs}; +import std::{option, result, io, fs}; import std::option::{some, none}; import syntax::ast; import syntax::parse::token; diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index 685b93941b9..df9683f6a93 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -1,6 +1,5 @@ -import std::{io, int, vec, str, map, option}; -import std::map::hashmap; +import std::{io, vec, str, option}; import std::option::{some, none}; import util::interner; import util::interner::intern; diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 214955b14a0..4fa5baa7af4 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -4,7 +4,6 @@ import std::option::{some, none}; import std::either::{left, right}; import std::map::{hashmap, new_str_hash}; import token::can_begin_expr; -import ex = ext::base; import codemap::span; import util::interner; import ast::{node_id, spanned}; diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs index c89d99f0baf..ee02e24c7a8 100644 --- a/src/comp/syntax/parse/token.rs +++ b/src/comp/syntax/parse/token.rs @@ -1,10 +1,8 @@ import ast::ty_mach; import ast_util::ty_mach_to_str; -import std::map::new_str_hash; import util::interner; -import std::{int, uint, str, option}; -import option::{some, none}; +import std::{int, uint, str}; type str_num = uint; -- cgit 1.4.1-3-g733a5