mirror of
https://github.com/ZDoom/zdbsp.git
synced 2024-11-23 20:32:14 +00:00
Remove unused multiline quoted string reading from SC_GetString()
This commit is contained in:
parent
c3d6308c74
commit
db70239897
2 changed files with 3 additions and 14 deletions
15
sc_man.cpp
15
sc_man.cpp
|
@ -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++;
|
||||
}
|
||||
|
|
2
sc_man.h
2
sc_man.h
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue