Skip to content

Commit a5a68eb

Browse files
committed
fixes
1 parent f60f6bc commit a5a68eb

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

datafusion/core/src/bin/print_functions_docs.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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)]
11288
fn print_docs(
11389
providers: Vec<Box<dyn DocProvider>>,

0 commit comments

Comments
 (0)