summaryrefslogtreecommitdiff
path: root/cli/fmt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/fmt.rs')
-rw-r--r--cli/fmt.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/cli/fmt.rs b/cli/fmt.rs
index c297f042c..d3f230ae2 100644
--- a/cli/fmt.rs
+++ b/cli/fmt.rs
@@ -179,13 +179,6 @@ fn format_stdin(check: bool) -> Result<(), ErrBox> {
Ok(())
}
-/// Formats the given source text
-pub fn format_text(source: &str) -> Result<String, ErrBox> {
- dprint::Formatter::new(get_config())
- .format_text(&PathBuf::from("_tmp.ts"), &source)
- .map_err(|e| OpError::other(e).into())
-}
-
fn files_str(len: usize) -> &'static str {
if len == 1 {
"file"