@@ -13,7 +13,6 @@ use opencv_binding_generator::{
13
13
struct FunctionFinder < ' tu , ' f > {
14
14
pub module : & ' tu str ,
15
15
pub gen_env : GeneratorEnv < ' tu > ,
16
- pub func_rename_unused : RefCell < & ' f mut HashSet < & ' static str > > ,
17
16
pub func_exclude_unused : RefCell < & ' f mut HashSet < & ' static str > > ,
18
17
pub func_cfg_attr_unused : RefCell < & ' f mut HashSet < & ' static str > > ,
19
18
pub func_unsafe_unused : RefCell < & ' f mut HashSet < FuncId < ' static > > > ,
@@ -26,7 +25,6 @@ impl<'tu, 'f> FunctionFinder<'tu, 'f> {
26
25
let identifier = f. identifier ( ) ;
27
26
let func_id = f. func_id ( ) . make_static ( ) ;
28
27
29
- self . func_rename_unused . borrow_mut ( ) . remove ( identifier. as_str ( ) ) ;
30
28
self . func_exclude_unused . borrow_mut ( ) . remove ( identifier. as_str ( ) ) ;
31
29
self . func_cfg_attr_unused . borrow_mut ( ) . remove ( identifier. as_str ( ) ) ;
32
30
self . func_unsafe_unused . borrow_mut ( ) . remove ( & func_id) ;
@@ -86,7 +84,6 @@ fn main() {
86
84
let mut args = env:: args_os ( ) . skip ( 1 ) ;
87
85
let src_cpp_dir = PathBuf :: from ( args. next ( ) . expect ( "2nd argument must be dir with custom cpp" ) ) ;
88
86
let opencv_header_dirs = args. map ( PathBuf :: from) ;
89
- let mut func_rename_unused = settings:: FUNC_RENAME . keys ( ) . copied ( ) . collect :: < HashSet < _ > > ( ) ;
90
87
let mut func_exclude_unused = settings:: FUNC_EXCLUDE . clone ( ) ;
91
88
let mut func_cfg_attr_unused = settings:: FUNC_CFG_ATTR . keys ( ) . copied ( ) . collect :: < HashSet < _ > > ( ) ;
92
89
let mut func_unsafe_unused = settings:: FUNC_UNSAFE . clone ( ) ;
@@ -112,7 +109,6 @@ fn main() {
112
109
root_entity. walk_opencv_entities ( FunctionFinder {
113
110
module : & module,
114
111
gen_env,
115
- func_rename_unused : RefCell :: new ( & mut func_rename_unused) ,
116
112
func_exclude_unused : RefCell :: new ( & mut func_exclude_unused) ,
117
113
func_cfg_attr_unused : RefCell :: new ( & mut func_cfg_attr_unused) ,
118
114
func_unsafe_unused : RefCell :: new ( & mut func_unsafe_unused) ,
@@ -122,8 +118,6 @@ fn main() {
122
118
} ) ;
123
119
}
124
120
}
125
- println ! ( "Unused entries in settings::FUNC_RENAME ({}):" , func_rename_unused. len( ) ) ;
126
- show ( func_rename_unused) ;
127
121
println ! ( "Unused entries in settings::FUNC_EXCLUDE ({}):" , func_exclude_unused. len( ) ) ;
128
122
show ( func_exclude_unused) ;
129
123
println ! ( "Unused entries in settings::FUNC_CFG_ATTR ({}):" , func_cfg_attr_unused. len( ) ) ;
0 commit comments