From 19dce9dc3256a1cac13dca2c43e11fef1462e3e5 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Mon, 11 Aug 2025 15:29:11 +0200 Subject: [PATCH] Remove deprecated functions and methods from the bindings --- bindings/ignore.swg | 4 ++++ bindings/python/test_Hamlib_class.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bindings/ignore.swg b/bindings/ignore.swg index 34f634034..4765a41b9 100644 --- a/bindings/ignore.swg +++ b/bindings/ignore.swg @@ -5,6 +5,7 @@ %rename("$ignore", regexmatch$name="^AMP_") ""; %rename("$ignore", regexmatch$name="^RIG_") ""; %rename("$ignore", regexmatch$name="^ROT_") ""; +%rename("$ignore", regexmatch$name="deprecated") ""; // re-add useful defines @@ -86,6 +87,7 @@ %rename("$ignore", regexmatch$name="^amp_", %$isfunction) ""; %rename("$ignore", regexmatch$name="^rig_", %$isfunction) ""; %rename("$ignore", regexmatch$name="^rot_", %$isfunction) ""; + // re-add some methods %rename("%s") rig_set_debug; %rename("%s", regexmatch$name="^rig_str", %$isfunction) ""; @@ -111,7 +113,9 @@ %ignore PRIfreq; %ignore SCNfreq; +// others %rename("$ignore", regexmatch$name="python_callbacks") ""; // internal structs and methods used by bindings +%ignore rig_state::cache; // deprecated #ifdef SWIGLUA %ignore Rig::set_level(setting_t,int,vfo_t); diff --git a/bindings/python/test_Hamlib_class.py b/bindings/python/test_Hamlib_class.py index 98f767f7e..f0323958d 100755 --- a/bindings/python/test_Hamlib_class.py +++ b/bindings/python/test_Hamlib_class.py @@ -52,7 +52,6 @@ class TestClass: 'multicast_s', 'netrigctl_get_vfo_mode', 'qrb', -'rig_cache_deprecated', 'rig_callbacks', 'rig_caps', 'rig_set_debug', @@ -60,7 +59,6 @@ class TestClass: 'rig_spectrum_line', 'rig_spectrum_scope', 'rig_state', -'rig_state_deprecated', 'rig_stragclevel', 'rig_strcommstatus', 'rig_strfunc',