summaryrefslogtreecommitdiff
path: root/cli/fmt.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-06-04 08:36:25 -0400
committerGitHub <noreply@github.com>2020-06-04 08:36:25 -0400
commite3cc3db20fc86d9adb19bb472e8c96ae5f7c77c0 (patch)
tree78dcdb431dbc03e2561f8aa8c21bf3af7302885b /cli/fmt.rs
parent42a04ea08a09e29417518524cbe2245c165e6f55 (diff)
Revert "feat: format deno bundle output (#5139)" (#6085)
This reverts commit 93cf3bd5341d5985201ea0905280082d5a3310f9.
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"