Skip to content

Commit

Permalink
Remove unused strreplaceall function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 15, 2016
1 parent 80ea6bb commit 86bf661
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/xrScriptEngine/script_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,18 +1256,6 @@ void CScriptEngine::on_error(lua_State *state)
#endif
}

#ifdef DEBUG

static void strreplaceall(xr_string &str, LPCSTR what, LPCSTR to)
{
LPCSTR A;
int S_len = xr_strlen(what);
while (A = strstr(str.c_str(), what), A)
str.replace(A-str.c_str(), S_len, to);
}

#endif

CScriptProcess *CScriptEngine::CreateScriptProcess(shared_str name, shared_str scripts)
{ return new CScriptProcess(this, name, scripts); }

Expand Down

0 comments on commit 86bf661

Please sign in to comment.