First round of director mods
- Removed asserts - The unused __DIRECTOR__ base class default constructor removed. I've used the conventional approach of having no default constructor rather than a private one (declaring it private doesn't serve any useful purpose when this constructor is not wanted). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
842055ed5d
commit
a7933a75b0
7 changed files with 0 additions and 29 deletions
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <assert.h>
|
||||
#include <string>
|
||||
|
||||
struct swig_body_args
|
||||
|
|
@ -99,11 +98,6 @@ private:
|
|||
#endif
|
||||
|
||||
public:
|
||||
/* the default constructor should not be called */
|
||||
__DIRECTOR__() {
|
||||
assert(false);
|
||||
}
|
||||
|
||||
/* wrap a Ruby object, optionally taking ownership */
|
||||
__DIRECTOR__(VALUE self, bool disown) : _self(self), _disown(disown) {
|
||||
}
|
||||
|
|
@ -159,7 +153,6 @@ public:
|
|||
/* acquire ownership of the wrapped Ruby object (the sense of "disown"
|
||||
* is from Ruby) */
|
||||
void __disown() const {
|
||||
assert(_self);
|
||||
if (!_disown) {
|
||||
_disown = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -431,7 +431,6 @@
|
|||
} else {
|
||||
$input = proxy->__get_self();
|
||||
}
|
||||
assert($input);
|
||||
}
|
||||
}
|
||||
%typemap(inv) SWIGTYPE * {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue