diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-06 06:35:25 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-06 06:35:25 +0000 |
commit | 3a0eb8a5f2d211f88439db811ed32e23a8ce9b0b (patch) | |
tree | aea6bd7220555857df695179296dc2552c56211f /sca-cpp/trunk/modules/python/eval.hpp | |
parent | 60ef14f12b5301fa7f117134044cf0716fb5ae61 (diff) |
Minor cleanup, removed unnecessary references to GC pools.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@896327 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/python/eval.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/python/eval.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sca-cpp/trunk/modules/python/eval.hpp b/sca-cpp/trunk/modules/python/eval.hpp index 4631ed485d..b0d793418a 100644 --- a/sca-cpp/trunk/modules/python/eval.hpp +++ b/sca-cpp/trunk/modules/python/eval.hpp @@ -238,7 +238,7 @@ const failable<PyObject*> readScript(const string& path, istream& is) { /** * Evaluate an expression against a script provided as a python object. */ -const failable<value> evalScript(const value& expr, PyObject* script, unused const gc_pool& pool) { +const failable<value> evalScript(const value& expr, PyObject* script) { // Get the requested function PyObject* func = PyObject_GetAttrString(script, c_str(car<value>(expr))); @@ -268,18 +268,18 @@ const failable<value> evalScript(const value& expr, PyObject* script, unused con /** * Evaluate an expression against a script provided as an input stream. */ -const failable<value> evalScript(const value& expr, istream& is, unused const gc_pool& pool) { +const failable<value> evalScript(const value& expr, istream& is) { failable<PyObject*> script = readScript("script", is); if (!hasContent(script)) return mkfailure<value>(reason(script)); - return evalScript(expr, content(script), pool); + return evalScript(expr, content(script)); } /** * Evaluate an expression against the python builtin module, no script is provided. */ -const failable<value> evalExpr(const value& expr, const gc_pool& pool) { - return evalScript(expr, builtin(pythonRuntime), pool); +const failable<value> evalExpr(const value& expr) { + return evalScript(expr, builtin(pythonRuntime)); } } |