Skip to content

Commit 129d380

Browse files
committed
fix(unionvisor): cleanup
1 parent 161b9ae commit 129d380

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

unionvisor/src/bundle.rs

-29
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
use std::{
22
ffi::OsString,
3-
fmt::Display,
43
fs, io,
54
path::PathBuf,
65
process::{Command, Stdio},
76
};
87

9-
use color_eyre::owo_colors::OwoColorize;
108
use serde::{Deserialize, Serialize};
119
use thiserror::Error;
1210
use tracing::{debug, error, field::display as as_display, info};
@@ -119,33 +117,6 @@ pub struct BundleMeta {
119117
versions_directory: PathBuf,
120118
}
121119

122-
// pub enum BinaryAvailability {
123-
// NotFound,
124-
// PermissionDenied,
125-
// Ok,
126-
// }
127-
128-
impl Display for Bundle {
129-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
130-
// writeln!(f, "BUNDLE INFO")?;
131-
// writeln!(f, "┏━━━━━━━━━━━")?;
132-
// writeln!(f, "┃ bundle: {self:?}")?;
133-
// writeln!(f, "┃ genesis: {:?}", self.genesis_json().into_os_string())?;
134-
// writeln!(f, "┃ versions:")?;
135-
136-
let versions =
137-
fs::read_dir(self.versions_path()).expect("can't read contents of versions path");
138-
for version in versions {
139-
let version = version
140-
.expect("can't read version dir entry")
141-
.path()
142-
.into_os_string();
143-
writeln!(f, "┃ - {version:?}")?;
144-
}
145-
writeln!(f, "┗━━━━━━━━━━━")
146-
}
147-
}
148-
149120
impl Bundle {
150121
/// Constructs a new [`Bundle`] based on a path.
151122
/// Will read `bundle/meta.json` and error if invalid.

unionvisor/src/cli.rs

-2
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ impl RunCmd {
208208
fn run(&self, root: impl Into<PathBuf>, logformat: LogFormat) -> Result<(), RunError> {
209209
let root = root.into();
210210
let bundle = Bundle::new(self.bundle.clone())?;
211-
212211
log_bundle(&bundle);
213-
214212
let symlinker = Symlinker::new(root.clone(), bundle);
215213
supervisor::run_and_upgrade(
216214
root,

0 commit comments

Comments
 (0)