File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -84,30 +84,6 @@ fn print_window_docs() -> Result<String> {
8484 print_docs ( providers, window_doc_sections:: doc_sections ( ) )
8585}
8686
87- // Temporary method useful to semi automate
88- // the migration of UDF documentation generation from code based
89- // to attribute based
90- // To be removed
91- #[ expect( dead_code) ]
92- fn save_doc_code_text ( documentation : & Documentation , name : & str ) {
93- let attr_text = documentation. to_doc_attribute ( ) ;
94-
95- let file_path = format ! ( "{name}.txt" ) ;
96- if std:: path:: Path :: new ( & file_path) . exists ( ) {
97- std:: fs:: remove_file ( & file_path) . unwrap ( ) ;
98- }
99-
100- // Open the file in append mode, create it if it doesn't exist
101- let mut file = std:: fs:: OpenOptions :: new ( )
102- . append ( true ) // Open in append mode
103- . create ( true ) // Create the file if it doesn't exist
104- . open ( file_path)
105- . unwrap ( ) ;
106-
107- use std:: io:: Write ;
108- file. write_all ( attr_text. as_bytes ( ) ) . unwrap ( ) ;
109- }
110-
11187#[ expect( clippy:: needless_pass_by_value) ]
11288fn print_docs (
11389 providers : Vec < Box < dyn DocProvider > > ,
You can’t perform that action at this time.
0 commit comments