Skip to content

Commit

Permalink
chore: removed unused prototype code
Browse files Browse the repository at this point in the history
  • Loading branch information
kotval committed Jan 8, 2024
1 parent 7d101d7 commit 48d0bf4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions xtask/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ impl CrateSpec {
}
}
}
//impl Clone for CrateSpec {
// fn clone(&self) -> CrateSpec {
// match self {
// CrateSpec::Local(s, xip) => CrateSpec::Local(s.to_string(), *xip),
// CrateSpec::CratesIo(n, v, xip) => CrateSpec::CratesIo(n.to_string(), v.to_string(), *xip),
// CrateSpec::Prebuilt(n, u, xip) => CrateSpec::Prebuilt(n.to_string(), u.to_string(), *xip),
// CrateSpec::BinaryFile(n, path, xip) => CrateSpec::BinaryFile(n.as_ref(), path.to_string(), *xip),
// CrateSpec::None => CrateSpec::None,
// }
// }
//}
impl From<&str> for CrateSpec {
fn from(spec: &str) -> CrateSpec {
// remote crates are specified as "name@version", i.e. "[email protected]"
Expand Down Expand Up @@ -337,10 +326,6 @@ impl Builder {
}
self
}
///// Add an app binary build out of souce tree
//pub fn add_external_apps<'a>(&'a mut self, app_list: &Vec::<String>) -> &'a mut Builder{
//
//}
/// add a feature to be passed on to services
pub fn add_feature<'a>(&'a mut self, feature: &str) -> &'a mut Builder {
self.features.push(feature.into());
Expand Down
3 changes: 0 additions & 3 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
builder.add_apps(&extra_apps);
let extra_services = get_flag("--service")?;
builder.add_services(&extra_services);
//Should we have such a flag?
//let external_apps = get_flag("--external_app")?;
//builder.add_external_apps(&external_apps);
// extract features, and especially track language features
let features = get_flag("--feature")?;
let mut language_set = false;
Expand Down

0 comments on commit 48d0bf4

Please sign in to comment.