aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-05-05 15:53:38 -0700
committerGraydon Hoare <[email protected]>2011-05-05 16:53:25 -0700
commit9d7fc21967fd3719bc95d4c7d063cd0b04d1a921 (patch)
treedc07adcb775ee2219668165700702809b89fd348 /src/comp/pretty
parentAdd Kelly to AUTHORS. (diff)
downloadrust-9d7fc21967fd3719bc95d4c7d063cd0b04d1a921.tar.xz
rust-9d7fc21967fd3719bc95d4c7d063cd0b04d1a921.zip
Consolidating expr_to_str functions.
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index c87a8679..3111b012 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -41,15 +41,6 @@ fn block_to_str(&ast.block blk) -> str {
ret writer.get_str();
}
-fn expr_to_str(&@ast.expr e) -> str {
- auto writer = io.string_writer();
- auto s = @rec(s=pp.mkstate(writer.get_writer(), 78u),
- comments=option.none[vec[lexer.cmnt]],
- mutable cur_cmnt=0u);
- print_expr(s, e);
- ret writer.get_str();
-}
-
fn pat_to_str(&@ast.pat p) -> str {
auto writer = io.string_writer();
auto s = @rec(s=pp.mkstate(writer.get_writer(), 78u),