Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit fe64e7d

Browse files
[[ RefactorSyntax ]] EP removed from ask.cpp, ask.h, answer.cpp
1 parent c8a1663 commit fe64e7d

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

engine/src/answer.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -289,20 +289,6 @@ Parse_errors MCAnswer::parse_notify(MCScriptPoint& sp)
289289
return t_error;
290290
}
291291

292-
static bool evaluate_stringref(MCExecPoint &ep, MCExpression *p_expr, uint16_t p_err, int p_line, int p_pos, MCStringRef &r_value)
293-
{
294-
if (p_expr != nil)
295-
{
296-
if (p_expr->eval(ep) != ES_NORMAL)
297-
{
298-
MCeerror->add(p_err, p_line, p_pos);
299-
return false;
300-
}
301-
/* UNCHECKED */ ep.copyasstringref(r_value);
302-
}
303-
return true;
304-
}
305-
306292
void MCAnswer::exec_ctxt(MCExecContext& ctxt)
307293
{
308294
MCAutoStringRef t_title;

engine/src/ask.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,6 @@ Parse_errors MCAsk::parse_file(MCScriptPoint& sp)
240240
return t_error;
241241
}
242242

243-
static bool evaluate_stringref(MCExecPoint &ep, MCExpression *p_expr, uint16_t p_err, int p_line, int p_pos, MCStringRef &r_value)
244-
{
245-
if (p_expr != nil)
246-
{
247-
if (p_expr->eval(ep) != ES_NORMAL)
248-
{
249-
MCeerror->add(p_err, p_line, p_pos);
250-
return false;
251-
}
252-
/* UNCHECKED */ ep.copyasstringref(r_value);
253-
}
254-
return true;
255-
}
256-
257243
void MCAsk::exec_ctxt(class MCExecContext& ctxt)
258244
{
259245

engine/src/ask.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ class MCAsk : public MCStatement
8383
Parse_errors parse_question(MCScriptPoint& sp);
8484
Parse_errors parse_password(MCScriptPoint& sp);
8585
Parse_errors parse_file(MCScriptPoint& sp);
86-
87-
Exec_errors exec_question(MCExecPoint& ep, const char *p_title);
88-
Exec_errors exec_password(MCExecPoint& ep, const char *p_title);
89-
Exec_errors exec_file(MCExecPoint& ep, const char *p_title);
90-
91-
Exec_errors exec_custom(MCExecPoint& sp, bool& p_cancelled, const MCString& p_name, const char *p_type, unsigned int t_count, ...);
9286
};
9387

9488
#endif

0 commit comments

Comments
 (0)