From db70239897594d93b85ab832cc9ccc3a31e22a46 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 7 Jan 2016 13:27:42 -0600 Subject: [PATCH] Remove unused multiline quoted string reading from SC_GetString() --- sc_man.cpp | 15 ++------------- sc_man.h | 2 +- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/sc_man.cpp b/sc_man.cpp index 21998f7..cd48b2a 100644 --- a/sc_man.cpp +++ b/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++; } diff --git a/sc_man.h b/sc_man.h index c36671a..76f6818 100644 --- a/sc_man.h +++ b/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);