about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-07-27 18:06:24 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-07-27 18:06:24 -0700
commiteabd233dcd208bc21ca0f8eea02d87d56e5314eb (patch)
tree2ce72ee16c9e2fd5ad84b5f150bc791daffc49da /src/libsyntax/print
parent1d9f01cb421eae8e7ace0fa6b4d7f5ddf3ce4f65 (diff)
downloadrust-eabd233dcd208bc21ca0f8eea02d87d56e5314eb.tar.gz
rust-eabd233dcd208bc21ca0f8eea02d87d56e5314eb.zip
Start killing off obsolete/unused quoters, and fix long lines.
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index aacb725ec6c..8e541aed76d 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -728,7 +728,7 @@ fn print_block_with_attrs(s: ps, blk: ast::blk, attrs: ~[ast::attribute]) {
     print_possibly_embedded_block_(s, blk, block_normal, indent_unit, attrs);
 }
 
-enum embed_type { block_macro, block_block_fn, block_normal, }
+enum embed_type { block_block_fn, block_normal, }
 
 fn print_possibly_embedded_block(s: ps, blk: ast::blk, embedded: embed_type,
                                  indented: uint) {
@@ -747,7 +747,6 @@ fn print_possibly_embedded_block_(s: ps, blk: ast::blk, embedded: embed_type,
     let ann_node = node_block(s, blk);
     s.ann.pre(ann_node);
     alt embedded {
-      block_macro { word(s.s, ~"#{"); end(s); }
       block_block_fn { end(s); }
       block_normal { bopen(s); }
     }
@@ -841,14 +840,6 @@ fn print_mac(s: ps, m: ast::mac) {
         for tts.each() |tt| { print_tt(s, tt); }
         bclose(s, m.span);
       }
-      ast::mac_embed_type(ty) {
-        word(s.s, ~"#<");
-        print_type(s, ty);
-        word(s.s, ~">");
-      }
-      ast::mac_embed_block(blk) {
-        print_possibly_embedded_block(s, blk, block_normal, indent_unit);
-      }
       ast::mac_ellipsis { word(s.s, ~"..."); }
       ast::mac_var(v) { word(s.s, #fmt("$%u", v)); }
       _ { /* fixme */ }