Remove incorrect documentation about %ref and %unref

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12006 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-05-01 10:02:23 +00:00
commit 58a7e2c3d6

View file

@ -2124,8 +2124,8 @@ Object 'RCObj', which implements the ref/unref idiom.
<p> <p>
To tell SWIG that 'RCObj' and all its derived classes are reference To tell SWIG that 'RCObj' and all its derived classes are reference
counted objects, you use the "ref" and "unref" features, or counted objects, you use the "ref" and "unref" features.
<tt>%ref</tt> and <tt>%unref</tt> directives (since 1.3.28). For example: For example:
</p> </p>
@ -2143,25 +2143,6 @@ counted objects, you use the "ref" and "unref" features, or
</pre> </pre>
</div> </div>
or, using the directive form:
<div class="code">
<pre>
%module example
...
%ref RCObj "$this-&gt;ref();"
%unref RCObj "$this-&gt;unref();"
%include "rcobj.h"
%include "A.h"
...
</pre>
</div>
<p> <p>
where the code passed to the "ref" and "unref" features will be where the code passed to the "ref" and "unref" features will be
executed as needed whenever a new object is passed to python, or when executed as needed whenever a new object is passed to python, or when