Skip to content

Commit

Permalink
removed some deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbas committed Apr 23, 2016
1 parent db47130 commit a59e9cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
23 changes: 0 additions & 23 deletions intern/mantaflow/intern/MANTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,21 +596,6 @@ void MANTA::exportGrids(SmokeModifierData *smd)
PyGILState_Release(gilstate);
}

PyObject* MANTA::getPythonObject(std::string pyVariableName)
{
if (pyVariableName == "") return NULL;

PyGILState_STATE gilstate = PyGILState_Ensure();

PyObject* main = PyImport_AddModule("__main__");
PyObject* pyObject = PyObject_GetAttrString(main, pyVariableName.c_str());

Py_DECREF(pyObject);

PyGILState_Release(gilstate);
return pyObject;
}

void* MANTA::getGridPointer(std::string gridName, std::string solverName)
{
if ((gridName == "") && (solverName == "")) return NULL;
Expand Down Expand Up @@ -639,14 +624,6 @@ void* MANTA::getGridPointer(std::string gridName, std::string solverName)
return gridPointer;
}

void* MANTA::pointerFromString(const std::string& s)
{
std::stringstream ss(s);
void *gridPointer = NULL;
ss >> gridPointer;
return gridPointer;
}

void MANTA::updatePointers(SmokeModifierData *smd)
{
std::cout << "Updating pointers low res" << std::endl;
Expand Down
3 changes: 0 additions & 3 deletions intern/mantaflow/intern/MANTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ struct MANTA {
std::string parseLine(const std::string& line, SmokeModifierData *smd);
std::string parseScript(const std::string& setup_string, SmokeModifierData *smd);
void* getGridPointer(std::string gridName, std::string solverName);
void* pointerFromString(const std::string& s);
PyObject* getPythonObject(std::string pyVariableName);

};

#endif

0 comments on commit a59e9cd

Please sign in to comment.