From: Michael Wallner Date: Sat, 2 Feb 2013 13:37:37 +0000 (+0100) Subject: remove unused code X-Git-Tag: v0.1.0~24 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f45475be17b6acdb84137ffd76fe6ea5745886e9;p=m6w6%2Fext-pq remove unused code --- diff --git a/src/php_pq.c b/src/php_pq.c index c716a61..bae80fc 100644 --- a/src/php_pq.c +++ b/src/php_pq.c @@ -1733,24 +1733,6 @@ typedef struct php_pqconn_resource_factory_data { long flags; } php_pqconn_resource_factory_data_t; -static php_pqconn_resource_factory_data_t *php_pqconn_resource_factory_data_init(const char *dsn, long flags) -{ - php_pqconn_resource_factory_data_t *data = emalloc(sizeof(*data)); - - data->dsn = estrdup(dsn); - data->flags = flags; - - return data; -} - -static void php_pqconn_resource_factory_data_dtor(void *d) -{ - php_pqconn_resource_factory_data_t *data = d; - - efree(data->dsn); - efree(data); -} - static void *php_pqconn_resource_factory_ctor(void *data, void *init_arg TSRMLS_DC) { php_pqconn_resource_factory_data_t *o = init_arg;