[Cleanup] Remove ExportVarComplex() from embparser.cpp/embparser.h (#3282)

# Notes
- This is unused.
This commit is contained in:
Alex King 2023-04-14 19:41:23 -04:00 committed by GitHub
parent a7e95d7818
commit c5c9985e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 20 deletions

View File

@ -835,25 +835,6 @@ void PerlembParser::ExportVar(const char *pkgprefix, const char *varname, float
}
}
void PerlembParser::ExportVarComplex(const char *pkgprefix, const char *varname, const char *value)
{
if (!perl) {
return;
}
try {
perl->eval(std::string("$").append(pkgprefix).append("::").append(varname).append("=").append(value).append(";").c_str());
}
catch (std::string e) {
AddError(
fmt::format(
"Error exporting Perl variable [{}]",
e
)
);
}
}
void PerlembParser::ExportVar(const char *pkgprefix, const char *varname, const char *value)
{
if (!perl) {

View File

@ -145,7 +145,6 @@ private:
void ExportVar(const char *pkgprefix, const char *varname, uint32 value);
void ExportVar(const char *pkgprefix, const char *varname, float value);
void ExportVar(const char* pkgprefix, const char* varname, const char* classname, void* value);
void ExportVarComplex(const char *pkgprefix, const char *varname, const char *value);
int EventCommon(
QuestEventID event,