Skip to content

Commit a58dc04

Browse files
committed
refactor: cleanup dead code
1 parent a34d195 commit a58dc04

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/bin/jlpkg.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,12 @@ enum PkgCommand {
263263
manifest: bool,
264264
},
265265

266-
/// Preview a registry package
267-
Preview {
268-
/// Package name
269-
package: String,
270-
},
271-
272266
/// Explains why a package is in the dependency graph
273267
#[command(name = "why")]
274268
Why {
275269
/// Package name to explain
276270
package: String,
277271
},
278-
279-
/// Clean the Julia cache
280-
Clean,
281272
}
282273

283274
#[derive(Subcommand)]
@@ -431,12 +422,8 @@ fn main() -> Result<std::process::ExitCode> {
431422

432423
// Add default flags if not already specified
433424
for (flag, value) in defaults {
434-
// Check if this flag (or its underscore variant) is already specified
435-
let flag_underscore = flag.replace('-', "_");
436-
if !julia_flags
437-
.iter()
438-
.any(|f| f.starts_with(flag) || f.starts_with(&flag_underscore))
439-
{
425+
// Check if this flag is already specified
426+
if !julia_flags.iter().any(|f| f.starts_with(flag)) {
440427
new_args.push(format!("{}={}", flag, value));
441428
}
442429
}

0 commit comments

Comments
 (0)