Delete yield_end function since yield was removed upstream

This commit is contained in:
Jason Paryani 2013-09-19 22:08:17 -07:00
parent 9678a0f5a7
commit 46049ecc36
3 changed files with 0 additions and 8 deletions

View file

@ -42,9 +42,6 @@ cdef class EventLoop:
Py_INCREF(error_func) Py_INCREF(error_func)
return Promise()._init(async.there(self.thisptr, deref(promise.thisptr), <PyObject *>func, <PyObject *>error_func)) return Promise()._init(async.there(self.thisptr, deref(promise.thisptr), <PyObject *>func, <PyObject *>error_func))
cpdef yield_end(self):
return Promise()._init(async.yield_end(self.thisptr))
cdef class Promise: cdef class Promise:
cdef async.PyPromise * thisptr cdef async.PyPromise * thisptr
cdef public bint is_consumed cdef public bint is_consumed

View file

@ -33,10 +33,6 @@ PyObject * wrapPyFunc(PyObject * func, PyObject * arg) {
, [error_func](kj::Exception arg) { return wrapPyFunc(error_func, wrap_kj_exception(arg)); } ); , [error_func](kj::Exception arg) { return wrapPyFunc(error_func, wrap_kj_exception(arg)); } );
} }
::kj::Promise<PyObject *> yield_end(kj::EventLoop & loop) {
return loop.there(loop.yield(), []() { Py_RETURN_NONE; } );
}
// class PyEventLoop final: public ::kj::EventLoop { // class PyEventLoop final: public ::kj::EventLoop {
// public: // public:
// PyEventLoop() {} // PyEventLoop() {}

View file

@ -30,7 +30,6 @@ cdef extern from "asyncHelper.h":
PyPromise evalLater(EventLoop &, PyObject * func) PyPromise evalLater(EventLoop &, PyObject * func)
PyPromise there(EventLoop & loop, PyPromise & promise, PyObject * func, PyObject * error_func) PyPromise there(EventLoop & loop, PyPromise & promise, PyObject * func, PyObject * error_func)
PyPromise then(PyPromise & promise, PyObject * func, PyObject * error_func) PyPromise then(PyPromise & promise, PyObject * func, PyObject * error_func)
PyPromise yield_end(EventLoop & loop)
# cdef cppclass PyEventLoop(EventLoop): # cdef cppclass PyEventLoop(EventLoop):
# pass # pass