Skip to content

Commit dcfa179

Browse files
authored
app_featureprocess: Remove unnecessary bug fixes.
Remove BUGGY_AST_SUB handling since this bug has been fixed.
1 parent 04ff448 commit dcfa179

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

apps/app_featureprocess.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,19 +335,10 @@ static void assign_vars(struct ast_channel *chan, struct ast_str *strbuf, char *
335335
static int check_condition(struct ast_channel *chan, struct ast_str *strbuf, char *condition)
336336
{
337337
int res;
338-
#define BUGGY_AST_SUB 1
339338

340-
#if BUGGY_AST_SUB
341-
char substituted[1024];
342-
#endif
343-
344-
#if BUGGY_AST_SUB
345-
pbx_substitute_variables_helper(chan, condition, substituted, sizeof(substituted) - 1);
346-
ast_str_set(&strbuf, 0, "%s", substituted);
347-
#else
348339
ast_str_reset(strbuf);
349340
ast_str_substitute_variables(&strbuf, 0, chan, condition);
350-
#endif
341+
351342
ast_debug(2, "Condition to check: %s (evaluates to %s)\n", condition, ast_str_buffer(strbuf));
352343
res = pbx_checkcondition(ast_str_buffer(strbuf));
353344
ast_str_reset(strbuf);

0 commit comments

Comments
 (0)