diff options
Diffstat (limited to 'src/formatter')
| -rw-r--r-- | src/formatter/formatter.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index a07b903d..69c1a213 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -269,10 +269,6 @@ OptionalText_t format_inline_code(ast_t *ast, Table_t comments) { ast_t *val = Match(ast, StackReference)->value; return Texts("&", must(termify_inline(val, comments))); } - /*inline*/ case Optional: { - ast_t *val = Match(ast, Optional)->value; - return Texts(must(termify_inline(val, comments)), "?"); - } /*inline*/ case NonOptional: { ast_t *val = Match(ast, NonOptional)->value; return Texts(must(termify_inline(val, comments)), "!"); @@ -698,11 +694,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) { ast_t *val = Match(ast, StackReference)->value; return Texts("&(", termify(val, comments, indent), ")"); } - /*multiline*/ case Optional: { - if (inlined_fits) return inlined; - ast_t *val = Match(ast, Optional)->value; - return Texts(termify(val, comments, indent), "?"); - } /*multiline*/ case NonOptional: { if (inlined_fits) return inlined; ast_t *val = Match(ast, NonOptional)->value; |
