Remove remains of %nestedworkaround

Also the nestedworkaround feature it uses - both were deprecated over 10
years ago in SWIG 3.0.0.  Since then uses of these have done nothing
except emit a warning.
This commit is contained in:
Olly Betts 2024-09-12 14:41:24 +12:00
parent ff444c93f3
commit a268c71607
6 changed files with 11 additions and 14 deletions

View File

@ -7,6 +7,12 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.3.0 (in progress)
===========================
2024-09-12: olly
Remove remains of %nestedworkaround and the nestedworkaround
feature it uses, which were deprecated over 10 years ago in SWIG
3.0.0. Since then uses of these have done nothing except emit a
warning.
2024-09-11: wsfulton
[C# Java] #1188 Add the %interface_additional macro to the family of
%interface macros for adding additional interfaces for the generated

View File

@ -5963,12 +5963,12 @@ However, there was a workaround for nested class support in these older versions
the nested class in the global scope, adding in a typedef for the nested class in the global scope and
using the "nestedworkaround" feature on the nested class. This resulted in approximately the
same behaviour as the "flatnested" feature. With proper nested class support now available in SWIG-3.0.0, this
feature has been deprecated and no longer works requiring code changes. If you see the following warning:
feature was deprecated and has now been removed. If you see the following error:
</p>
<div class="shell">
<pre>
example.i:8: Warning 126: The nestedworkaround feature is deprecated
example.i:8: Error: Unknown directive '%nestedworkaround'
</pre>
</div>

View File

@ -371,8 +371,8 @@ example.i(4) : Syntax error in input(1).
<H3><a name="Warnings_nn10">19.9.1 Deprecated features (100-199)</a></H3>
<ul>
<li>126. The 'nestedworkaround' feature is deprecated.
<p>None currently.</p>
</ul>
<H3><a name="Warnings_nn11">19.9.2 Preprocessor (200-299)</a></H3>

View File

@ -115,11 +115,6 @@
#define %nocallback %feature("callback","0")
#define %clearcallback %feature("callback","")
/* the %nestedworkaround directive (deprecated) */
#define %nestedworkaround %feature("nestedworkaround")
#define %nonestedworkaround %feature("nestedworkaround","0")
#define %clearnestedworkaround %feature("nestedworkaround","")
/* the %flatnested directive */
#define %flatnested %feature("flatnested")
#define %noflatnested %feature("flatnested","0")

View File

@ -1320,10 +1320,6 @@ static void single_new_feature(const char *featurename, String *val, Hash *featu
/* Printf(stdout, "single_new_feature: [%s] [%s] [%s] [%s] [%s] [%s]\n", featurename, val, declaratorid, t, ParmList_str_defaultargs(declaratorparms), qualifier); */
/* Warn about deprecated features */
if (strcmp(featurename, "nestedworkaround") == 0)
Swig_warning(WARN_DEPRECATED_NESTED_WORKAROUND, cparse_file, cparse_line, "The 'nestedworkaround' feature is deprecated.\n");
fname = NewStringf("feature:%s",featurename);
if (declaratorid) {
fixname = feature_identifier_fix(declaratorid);

View File

@ -54,7 +54,7 @@
/* Unused since 4.2.0: #define WARN_DEPRECATED_NODEFAULT 123 */
/* Unused since 4.1.0: #define WARN_DEPRECATED_TYPEMAP_LANG 124 */
/* Unused since 4.2.0: #define WARN_DEPRECATED_INPUT_FILE 125 */
#define WARN_DEPRECATED_NESTED_WORKAROUND 126
/* Unused since 4.3.0: #define WARN_DEPRECATED_NESTED_WORKAROUND 126 */
/* -- Preprocessor -- */