about summary refs log tree commit diff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2018-05-18 16:35:09 +1200
committerNick Cameron <ncameron@mozilla.com>2018-05-18 16:35:09 +1200
commitd726492e65eb597eb7f8eef5d428a9bce4ba4eed (patch)
tree074660484a9c9c03c2667657472559705a5ef7a3 /src/utils.rs
parent7b6d2b4699303e9b4f966b7a3db65b979ca4a6fe (diff)
Remove spaces_within_parens_and_brackets
cc #1974
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 6c8862b9bf5..961989b3f5d 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -360,15 +360,6 @@ pub fn colon_spaces(before: bool, after: bool) -> &'static str {
     }
 }
 
-#[inline]
-pub fn paren_overhead(context: &RewriteContext) -> usize {
-    if context.config.spaces_within_parens_and_brackets() {
-        4
-    } else {
-        2
-    }
-}
-
 pub fn left_most_sub_expr(e: &ast::Expr) -> &ast::Expr {
     match e.node {
         ast::ExprKind::Call(ref e, _)