Removed unnecessary assertion.

This commit is contained in:
Patrick Lühne 2017-03-28 17:33:32 +02:00
parent 29233a7430
commit c63d74092e
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -216,7 +216,6 @@ inline output::ColorStream &operator<<(output::ColorStream &stream, const String
inline output::ColorStream &operator<<(output::ColorStream &stream, const Variable &variable) inline output::ColorStream &operator<<(output::ColorStream &stream, const Variable &variable)
{ {
assert(!variable.name.empty()); assert(!variable.name.empty());
assert(variable.name[0] >= 65 && variable.name[0] <= 90);
if (variable.type == ast::Variable::Type::Reserved || !isReservedVariableName(variable.name.c_str())) if (variable.type == ast::Variable::Type::Reserved || !isReservedVariableName(variable.name.c_str()))
return (stream << output::Variable(variable.name.c_str())); return (stream << output::Variable(variable.name.c_str()));