diff options
Diffstat (limited to 'Modules/_librabbitmq/connection.h')
-rw-r--r-- | Modules/_librabbitmq/connection.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Modules/_librabbitmq/connection.h b/Modules/_librabbitmq/connection.h index 9dea28d..9595085 100644 --- a/Modules/_librabbitmq/connection.h +++ b/Modules/_librabbitmq/connection.h @@ -104,8 +104,6 @@ buffer_toMemoryView(char *buf, Py_ssize_t buf_len) { PySTRING_FROM_AMQBYTES(table->headers.entries[i].key), \ stmt); \ -_PYRMQ_INLINE PyObject* Maybe_Unicode(PyObject *); - #if defined(__C99__) || defined(__GNUC__) # define PyString_AS_AMQBYTES(s) \ (amqp_bytes_t){Py_SIZE(s), (void *)PyBytes_AS_STRING(s)} @@ -122,14 +120,6 @@ PyString_AS_AMQBYTES(PyObject *s) } #endif -_PYRMQ_INLINE PyObject* -Maybe_Unicode(PyObject *s) -{ - if (PyUnicode_Check(s)) - return PyUnicode_AsASCIIString(s); - return s; -} - #define PYRMQ_IS_TIMEOUT(t) (t > 0.0) #define PYRMQ_IS_NONBLOCK(t) (t == -1) #define PYRMQ_SHOULD_POLL(t) (PYRMQ_IS_TIMEOUT(t) || PYRMQ_IS_NONBLOCK(t)) @@ -172,21 +162,6 @@ typedef struct { PyObject *weakreflist; } PyRabbitMQ_Connection; -// Keep track of PyObject references with increased reference count. -// Entries are stored in the channel pool. -#define PYOBJECT_POOL_MAX 100 -typedef struct pyobject_pool_t_ { - int num_entries; - PyObject **entries; - amqp_pool_t *pool; - struct pyobject_pool_t_ *next; -} pyobject_pool_t; - -int -PyDict_to_basic_properties(PyObject *, amqp_basic_properties_t *, - amqp_connection_state_t, amqp_pool_t *, - pyobject_pool_t *); - /* Connection method sigs */ static PyRabbitMQ_Connection* PyRabbitMQ_ConnectionType_new(PyTypeObject *, PyObject *, PyObject *); |