Skip to content

Commit 86bf661

Browse files
author
nitrocaster
committed
Remove unused strreplaceall function.
1 parent 80ea6bb commit 86bf661

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/xrScriptEngine/script_engine.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,18 +1256,6 @@ void CScriptEngine::on_error(lua_State *state)
12561256
#endif
12571257
}
12581258

1259-
#ifdef DEBUG
1260-
1261-
static void strreplaceall(xr_string &str, LPCSTR what, LPCSTR to)
1262-
{
1263-
LPCSTR A;
1264-
int S_len = xr_strlen(what);
1265-
while (A = strstr(str.c_str(), what), A)
1266-
str.replace(A-str.c_str(), S_len, to);
1267-
}
1268-
1269-
#endif
1270-
12711259
CScriptProcess *CScriptEngine::CreateScriptProcess(shared_str name, shared_str scripts)
12721260
{ return new CScriptProcess(this, name, scripts); }
12731261

0 commit comments

Comments
 (0)