Skip to content
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
3 changes: 0 additions & 3 deletions src/s3_signing/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,6 @@ impl S3Credentials {
result.authorization = authorization;
result.acl = sign_options.acl;
result.storage_class = sign_options.storage_class;
result.request_payer = request_payer;
result.url = url;
result._headers_len = 4;
// Self-referential: _headers borrows from owned Box<[u8]> fields on SignResult.
Expand Down Expand Up @@ -977,7 +976,6 @@ pub struct SignResult {
pub(crate) session_token: Box<[u8]>,
pub(crate) acl: Option<ACL>,
pub(crate) storage_class: Option<StorageClass>,
pub(crate) request_payer: bool,
// Self-referential: entries borrow from the Box<[u8]> fields above. PicoHeader
// must be a raw (ptr,len) pair; see note in sign_request.
pub(crate) _headers: [PicoHeader; Self::MAX_HEADERS],
Expand Down Expand Up @@ -1019,7 +1017,6 @@ impl Default for SignResult {
session_token: Box::default(),
acl: None,
storage_class: None,
request_payer: false,
_headers: [pico_header_empty(); Self::MAX_HEADERS],
_headers_len: 0,
}
Expand Down
Loading