]> granicus.if.org Git - php/commitdiff
remove some leftover code from the time tidy would throw exceptions
authorNuno Lopes <nlopess@php.net>
Tue, 5 Sep 2006 13:50:22 +0000 (13:50 +0000)
committerNuno Lopes <nlopess@php.net>
Tue, 5 Sep 2006 13:50:22 +0000 (13:50 +0000)
ext/tidy/tidy.c

index c6b0b050ee4b7cb3f4e7f90aba6ed5c67e620f0e..4c5bf49f57fbf3a8e7f4fb7d11dcd9aee9db1d10 100644 (file)
@@ -223,7 +223,6 @@ static char *php_tidy_file_to_mem(char *, zend_bool, int * TSRMLS_DC);
 static void tidy_object_free_storage(void * TSRMLS_DC);
 static zend_object_value tidy_object_new_node(zend_class_entry * TSRMLS_DC);
 static zend_object_value tidy_object_new_doc(zend_class_entry * TSRMLS_DC);
-static zend_object_value tidy_object_new_exception(zend_class_entry * TSRMLS_DC);
 static zend_class_entry *tidy_get_ce_node(zval * TSRMLS_DC);
 static zend_class_entry *tidy_get_ce_doc(zval * TSRMLS_DC);
 static zval * tidy_instanciate(zend_class_entry *, zval * TSRMLS_DC);
@@ -370,7 +369,6 @@ zend_class_entry *tidy_ce_doc, *tidy_ce_node, *tidy_ce_exception;
 
 static zend_object_handlers tidy_object_handlers_doc;
 static zend_object_handlers tidy_object_handlers_node;
-static zend_object_handlers tidy_object_handlers_exception;
 
 zend_module_entry tidy_module_entry = {
        STANDARD_MODULE_HEADER,
@@ -682,13 +680,6 @@ static zend_object_value tidy_object_new_doc(zend_class_entry *class_type TSRMLS
        return retval;
 }
 
-static zend_object_value tidy_object_new_exception(zend_class_entry *class_type TSRMLS_DC)
-{
-       zend_object_value retval;
-       tidy_object_new(class_type, &tidy_object_handlers_exception, &retval, is_exception TSRMLS_CC);
-       return retval;
-}
-
 static zend_class_entry *tidy_get_ce_node(zval *object TSRMLS_DC)
 {
        return tidy_ce_node;
@@ -1673,34 +1664,6 @@ static TIDY_NODE_METHOD(isHtml)
 }
 /* }}} */
 
-/* {{{ proto boolean tidyNode::isXhtml()
-   Returns true if this node is part of a XHTML document */
-static TIDY_NODE_METHOD(isXhtml)
-{
-       TIDY_FETCH_ONLY_OBJECT;
-
-       if (tidyDetectedXhtml(obj->ptdoc->doc)) {
-               RETURN_TRUE;
-       } else {
-               RETURN_FALSE;
-       }
-}
-/* }}} */
-
-/* {{{ proto boolean tidyNode::isXml()
-   Returns true if this node is part of a XML document */
-static TIDY_NODE_METHOD(isXml)
-{
-       TIDY_FETCH_ONLY_OBJECT;
-
-       if (tidyDetectedGenericXml(obj->ptdoc->doc)) {
-               RETURN_TRUE;
-       } else {
-               RETURN_FALSE;
-       }
-}
-/* }}} */
-
 /* {{{ proto boolean tidyNode::isText()
    Returns true if this node represents text (no markup) */
 static TIDY_NODE_METHOD(isText)