From: Michael Wallner Date: Wed, 13 Apr 2005 13:34:34 +0000 (+0000) Subject: - removed unused stuff X-Git-Tag: RELEASE_0_8_0~69 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3a658eda7fbc2ad5c8d2534ae69c4683266dab95;p=m6w6%2Fext-http - removed unused stuff --- diff --git a/http_exception_object.c b/http_exception_object.c index 5af0dc5..44c5c2a 100644 --- a/http_exception_object.c +++ b/http_exception_object.c @@ -45,19 +45,6 @@ zend_class_entry *_http_exception_get_default() return http_exception_object_ce; } -void _http_exception_throw_ce_ex(zend_class_entry *ce, int code TSRMLS_DC) -{ - static char * const errors[] = { - "Unkown Error" - }; - - if (!ce) { - ce = http_exception_get_default(); - } - - zend_throw_exception(ce, errors[code], code TSRMLS_CC); -} - #endif /* diff --git a/php_http_exception_object.h b/php_http_exception_object.h index 423704a..e89c576 100644 --- a/php_http_exception_object.h +++ b/php_http_exception_object.h @@ -28,14 +28,6 @@ extern void _http_exception_object_init(INIT_FUNC_ARGS); #define http_exception_get_default _http_exception_get_default extern zend_class_entry *_http_exception_get_default(); -#define http_exception_throw() http_exception_throw_ex(0) -#define http_exception_throw_ex(code) http_exception_throw_ce_ex(NULL, code) -#define http_exception_throw_ce(ce) http_exception_throw_ce_ex(ce, 0) -#define http_exception_throw_ce_ex(ce, code) _http_exception_throw_ce_ex(ce, code TSRMLS_CC) -extern void _http_exception_throw_ce_ex(zend_class_entry *ce, int code TSRMLS_DC); - -#define HTTP_E_UNKOWN 0 - #endif #endif