From 1e9d41f2c1ffc2d94a6cbb9fa026467b9f238117 Mon Sep 17 00:00:00 2001
From: Fabian Homborg <FHomborg@gmail.com>
Date: Sat, 18 May 2019 20:40:35 +0200
Subject: [PATCH] Remove now-useless code for detecting `{}`

This can't happen anymore.
---
 src/expand.cpp | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/expand.cpp b/src/expand.cpp
index 457b113ae..a8b3daefc 100644
--- a/src/expand.cpp
+++ b/src/expand.cpp
@@ -531,15 +531,6 @@ static expand_result_t expand_braces(const wcstring &instr, expand_flags_t flags
         }
     }
 
-    // Expand a literal "{}" to itself because it is useless otherwise,
-    // and this eases e.g. `find -exec {}`. See #1109.
-    if (brace_begin + 1 == brace_end) {
-        wcstring newstr = instr;
-        newstr.at(brace_begin - in) = L'{';
-        newstr.at(brace_end - in) = L'}';
-        return expand_braces(newstr, flags, out, errors);
-    }
-
     if (syntax_error) {
         append_syntax_error(errors, SOURCE_LOCATION_UNKNOWN, _(L"Mismatched braces"));
         return expand_result_t::error;