Remove unused multiline quoted string reading from SC_GetString()

This commit is contained in:
Randy Heit 2016-01-07 13:27:42 -06:00
parent c3d6308c74
commit db70239897
2 changed files with 3 additions and 14 deletions

View file

@ -196,7 +196,7 @@ void SC_SetCMode (bool cmode)
//
//==========================================================================
bool SC_GetString (bool multiline)
bool SC_GetString ()
{
char *text;
bool foundToken;
@ -282,18 +282,7 @@ bool SC_GetString (bool multiline)
sc_StringQuoted = true;
while (*ScriptPtr != ASCII_QUOTE)
{
if (multiline && *ScriptPtr == '\n')
{
*text++ = '"';
*text++ = ',';
*text++ = '\n';
*text++ = '\t';
*text++ = '\t';
*text++ = '"';
ScriptPtr++;
continue;
}
else if (*ScriptPtr < ' ')
if (*ScriptPtr < ' ')
{
ScriptPtr++;
}

View file

@ -10,7 +10,7 @@ void SC_SetCMode (bool cmode);
void SC_SetEscape (bool esc);
void SC_SavePos (void);
void SC_RestorePos (void);
bool SC_GetString (bool multiline = false);
bool SC_GetString (void);
void SC_MustGetString (void);
void SC_MustGetStringName (const char *name);
bool SC_CheckString (const char *name);