Reverted the usage of OSG_UNUSED and OT_UNUSED as in hindsight these should never have been merged. Adding code to quieten
inappropriate warnings is a bad programming practice and does not desrve a place in the OSG code base.
This commit is contained in:
@@ -156,7 +156,6 @@ bool PythonEngine::eval(const std::string& code) {
|
||||
return true;
|
||||
|
||||
#else
|
||||
OSG_UNUSED(code);
|
||||
return noPythonFail("Can't evaluate code in PythonEngine");
|
||||
#endif
|
||||
}
|
||||
@@ -208,7 +207,6 @@ bool PythonEngine::runFile(const std::string& filePath) {
|
||||
return true;
|
||||
|
||||
#else
|
||||
OSG_UNUSED(filePath);
|
||||
return noPythonFail("Can't evaluate code in PythonEngine");
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user