Skip to content
Snippets Groups Projects
Commit fbb2844a authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Guilhem Saurel
Browse files

Clean code in signal-wrapper.hh

parent abd1a6c4
No related branches found
No related tags found
No related merge requests found
......@@ -57,23 +57,16 @@ namespace dynamicgraph {
SignalWrapper (std::string name, PyObject* _callable) :
parent_t (name)
, callable (_callable)
// , argsTuple (NULL)
// , argTime (NULL)
// , argValue (NULL)
{
typedef boost::function2<T&,T&,Time> function_t;
Py_INCREF(callable);
function_t f = boost::bind (&SignalWrapper::call, this, _1, _2);
this->setFunction (f);
// argsTuple = PyTuple_New(1);
// argTime = Py
}
virtual ~SignalWrapper ()
{
Py_DECREF(callable);
// Py_DECREF(args);
};
private:
......@@ -90,9 +83,6 @@ namespace dynamicgraph {
return value;
}
PyObject* callable;
// PyObject* argsTuple;
// PyObject* argTime;
// PyObject* argValue;
};
} // namespace dynamicgraph
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment