Skip to content

Commit a73dfc2

Browse files
committed
remove preprocessing
1 parent d13ed32 commit a73dfc2

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/formatter.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn format_gdscript_with_config(
3232
) -> Result<String, Box<dyn std::error::Error>> {
3333
let mut formatter = Formatter::new(content.to_owned(), config.clone());
3434

35-
formatter.preprocess().format()?.postprocess().reorder();
35+
formatter.format()?.postprocess().reorder();
3636
formatter.finish()
3737
}
3838

@@ -121,15 +121,6 @@ impl Formatter {
121121
self
122122
}
123123

124-
/// This function runs over the content before going through topiary.
125-
/// It is used to prepare the content for formatting or save performance by
126-
/// pre-applying rules that could be performance-intensive through topiary.
127-
#[inline(always)]
128-
fn preprocess(&mut self) -> &mut Self {
129-
// self.remove_newlines_after_extends_statement()
130-
self
131-
}
132-
133124
/// This function runs over the content after going through topiary. We use it
134125
/// to clean up/balance out the output.
135126
#[inline(always)]

0 commit comments

Comments
 (0)