summaryrefslogtreecommitdiff
path: root/cli/colors.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-04-26 13:28:38 -0400
committerGitHub <noreply@github.com>2021-04-26 13:28:38 -0400
commitf7c298e2972e6a1eb8f9329272ed8e8c9549266c (patch)
treeed17f90092481db6e5692cff7b3066889541e01e /cli/colors.rs
parente4e7d957e8cde899d48878c83f2099b0028dfdef (diff)
Remove denort optimization (#10350)
denort is an optimization to "deno compile" to produce slightly smaller output. It's a decent idea, but causes a lot of negative side-effects: - Deno's link time is a source of constant agony both locally and in CI, denort doubles link time. - The release process is a long and arduous undertaking with many manual steps. denort necessitates an additional manual zip + upload from M1 apple computers. - The "deno compile" interface is complicated with the "--lite" option. This is confusing for uses ("why wouldn't you want lite?"). The benefits of this feature do not outweigh the negatives. We must find a different approach to optimizing "deno compile" output.
Diffstat (limited to 'cli/colors.rs')
-rw-r--r--cli/colors.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/cli/colors.rs b/cli/colors.rs
index 5eafef4d4..ce0af172d 100644
--- a/cli/colors.rs
+++ b/cli/colors.rs
@@ -1,8 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-// allow(dead_code) because denort does not use this.
-#![allow(dead_code)]
-
use regex::Regex;
use std::fmt;
use std::io::Write;
@@ -128,15 +125,6 @@ pub fn gray<S: AsRef<str>>(s: S) -> impl fmt::Display {
style(s, style_spec)
}
-pub fn italic_bold_gray<S: AsRef<str>>(s: S) -> impl fmt::Display {
- let mut style_spec = ColorSpec::new();
- style_spec
- .set_fg(Some(Ansi256(8)))
- .set_bold(true)
- .set_italic(true);
- style(s, style_spec)
-}
-
pub fn intense_blue<S: AsRef<str>>(s: S) -> impl fmt::Display {
let mut style_spec = ColorSpec::new();
style_spec.set_fg(Some(Blue)).set_intense(true);