Skip to content
Open
13 changes: 0 additions & 13 deletions src/bun_core/Progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ pub struct Progress {
/// Whether the terminal supports ANSI escape codes.
pub supports_ansi_escape_codes: bool,

/// If the terminal is "dumb", don't print output.
/// This can be useful if you don't want to print all
/// the stages of code generation if there are a lot.
/// You should not use it if the user should see output
/// for example showing the user what tests run.
pub dont_print_on_dumb: bool,

pub root: Node,

/// Keeps track of how much time has passed since the beginning.
Expand Down Expand Up @@ -167,7 +160,6 @@ impl Default for Progress {
terminal: None,
is_windows_terminal: false,
supports_ansi_escape_codes: false,
dont_print_on_dumb: false,
root: Node::default(),
timer: None,
prev_refresh_timestamp: 0,
Expand Down Expand Up @@ -512,11 +504,6 @@ impl Progress {
}

fn refresh_with_held_lock(&mut self) {
let is_dumb = !self.supports_ansi_escape_codes && !self.is_windows_terminal;
if is_dumb && self.dont_print_on_dumb {
return;
}

let Some(file) = self.terminal else {
return;
};
Expand Down
12 changes: 0 additions & 12 deletions src/install/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -906,12 +906,6 @@ impl TagExt for Tag {
}
}

if let Ok(Some(info)) =
hosted_git_info::HostedGitInfo::from_url(dependency)
{
return hgi_to_tag(&info);
}

return Tag::Git;
}
}
Expand Down Expand Up @@ -952,12 +946,6 @@ impl TagExt for Tag {
}
}

if let Ok(Some(info)) =
hosted_git_info::HostedGitInfo::from_url(dependency)
{
return hgi_to_tag(&info);
}

return Tag::Git;
}
}
Expand Down
15 changes: 0 additions & 15 deletions src/jsc/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
pub enum Error {
#[error("ModuleNotFound")]
ModuleNotFound,
#[error("InvalidDataURL")]
InvalidDataURL,
#[error("InvalidURL")]
InvalidURL,
#[error("ParserError")]
ParserError,
#[error("StaleCache")]
Expand Down Expand Up @@ -38,8 +34,6 @@ pub enum Error {
ParseError,
#[error("JSError")]
JSError,
#[error("TarballFailedToExtract")]
TarballFailedToExtract,
#[error("ServerEntryPointGenerate")]
ServerEntryPointGenerate,
#[error("UnexpectedPendingResolution")]
Expand All @@ -48,10 +42,6 @@ pub enum Error {
WorkerTerminated,
#[error("ThreadSpawnFailed")]
ThreadSpawnFailed,
#[error("MissingDebugInfo")]
MissingDebugInfo,
#[error("EndOfFile")]
EndOfFile,
#[error("FailedToOpenSocket")]
FailedToOpenSocket,
#[error(transparent)]
Expand Down Expand Up @@ -91,8 +81,6 @@ impl Error {
pub fn name(&self) -> &'static str {
match self {
Self::ModuleNotFound => "ModuleNotFound",
Self::InvalidDataURL => "InvalidDataURL",
Self::InvalidURL => "InvalidURL",
Self::ParserError => "ParserError",
Self::StaleCache => "StaleCache",
Self::InvalidModuleType => "InvalidModuleType",
Expand All @@ -109,13 +97,10 @@ impl Error {
Self::TranspilerJobGenerationMismatch => "TranspilerJobGenerationMismatch",
Self::ParseError => "ParseError",
Self::JSError => "JSError",
Self::TarballFailedToExtract => "TarballFailedToExtract",
Self::ServerEntryPointGenerate => "ServerEntryPointGenerate",
Self::UnexpectedPendingResolution => "UnexpectedPendingResolution",
Self::WorkerTerminated => "WorkerTerminated",
Self::ThreadSpawnFailed => "ThreadSpawnFailed",
Self::MissingDebugInfo => "MissingDebugInfo",
Self::EndOfFile => "EndOfFile",
Self::FailedToOpenSocket => "FailedToOpenSocket",
Self::Sys(e) => <&'static str>::from(e),
Self::Alloc(_) => "OutOfMemory",
Expand Down
Loading