From 81861258bef606bcdf14d170fb73cd06e25e5ebe Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Mon, 10 Mar 2014 14:10:16 +0100 Subject: deal with magic methods and magic interfaces that throw exceptions --- src/origexception.cpp | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'src/origexception.cpp') diff --git a/src/origexception.cpp b/src/origexception.cpp index e24131a..e3634e4 100644 --- a/src/origexception.cpp +++ b/src/origexception.cpp @@ -13,37 +13,6 @@ */ namespace Php { -/** - * Constructor - * @param zval - */ -OrigException::OrigException(struct _zval_struct *zval) : - Value(zval), - Exception("OrigException"), - _restored(false) -{ - // save the exception - //zend_exception_save(); -} - -/** - * Copy constructor - * @param exception - */ -OrigException::OrigException(const OrigException &exception) : - Value(exception), - Exception("OrigException"), - _restored(exception._restored) {} - -/** - * Move constructor - * @param exception - */ -OrigException::OrigException(OrigException &&exception) : - Value(std::move(exception)), - Exception("OrigException"), - _restored(exception._restored) {} - /** * Destructor */ @@ -56,19 +25,6 @@ OrigException::~OrigException() noexcept zend_clear_exception(); } -/** - * Restore the exception - * @internal - */ -void OrigException::restore() -{ - // restore the exception - //zend_exception_restore(); - - // mark exception as restored - _restored = true; -} - /** * End of namespace */ -- cgit v1.2.3