summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/args/mod.rs14
-rw-r--r--cli/shared.rs6
2 files changed, 6 insertions, 14 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index c347ab6fd..403e4ffdf 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -1453,16 +1453,6 @@ impl CliOptions {
Ok(result)
}
- pub fn resolve_deno_graph_workspace_members(
- &self,
- ) -> Result<Vec<deno_graph::WorkspaceMember>, AnyError> {
- self
- .workspace()
- .jsr_packages()
- .map(|pkg| config_to_deno_graph_workspace_member(&pkg.config_file))
- .collect::<Result<Vec<_>, _>>()
- }
-
/// Vector of user script CLI arguments.
pub fn argv(&self) -> &Vec<String> {
&self.flags.argv
@@ -1551,10 +1541,6 @@ impl CliOptions {
&self.flags.location
}
- pub fn maybe_custom_root(&self) -> &Option<PathBuf> {
- &self.flags.cache_path
- }
-
pub fn no_remote(&self) -> bool {
self.flags.no_remote
}
diff --git a/cli/shared.rs b/cli/shared.rs
index d02c2762e..808aff707 100644
--- a/cli/shared.rs
+++ b/cli/shared.rs
@@ -7,9 +7,11 @@ use deno_core::error::AnyError;
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum ReleaseChannel {
/// Stable version, eg. 1.45.4, 2.0.0, 2.1.0
+ #[allow(unused)]
Stable,
/// Pointing to a git hash
+ #[allow(unused)]
Canary,
/// Long term support release
@@ -17,10 +19,12 @@ pub enum ReleaseChannel {
Lts,
/// Release candidate, eg. 1.46.0-rc.0, 2.0.0-rc.1
+ #[allow(unused)]
Rc,
}
impl ReleaseChannel {
+ #[allow(unused)]
pub fn name(&self) -> &str {
match self {
Self::Stable => "stable",
@@ -32,6 +36,7 @@ impl ReleaseChannel {
// NOTE(bartlomieju): do not ever change these values, tools like `patchver`
// rely on them.
+ #[allow(unused)]
pub fn serialize(&self) -> String {
match self {
Self::Stable => "stable",
@@ -44,6 +49,7 @@ impl ReleaseChannel {
// NOTE(bartlomieju): do not ever change these values, tools like `patchver`
// rely on them.
+ #[allow(unused)]
pub fn deserialize(str_: &str) -> Result<Self, AnyError> {
Ok(match str_ {
"stable" => Self::Stable,