- removed unused stuff
authorMichael Wallner <mike@php.net>
Wed, 13 Apr 2005 13:34:34 +0000 (13:34 +0000)
committerMichael Wallner <mike@php.net>
Wed, 13 Apr 2005 13:34:34 +0000 (13:34 +0000)
http_exception_object.c
php_http_exception_object.h

index 5af0dc568156b3dad3f7b01f165e285916204902..44c5c2a4fe11577fb6171bd87c48c02a755449c9 100644 (file)
@@ -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
 
 /*
index 423704a8c7b34fb889f25cd2a1960c80c1a5fb62..e89c576244ec158a91df9e5430f859376c256ad1 100644 (file)
@@ -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