From 98617b70d8e85053c1ca56f26c58d49d880a0ce1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jan 2022 14:58:23 -0500 Subject: remove pipeline from the environment it was only really here for convenience, but it doesn't really make a lot of sense --- src/env.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/env.rs') diff --git a/src/env.rs b/src/env.rs index 221182e..41484d0 100644 --- a/src/env.rs +++ b/src/env.rs @@ -9,7 +9,6 @@ pub enum Env { #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct V0 { - pipeline: Option, idx: usize, #[serde( serialize_with = "serialize_status", @@ -23,7 +22,6 @@ pub struct V0 { impl Env { pub fn new() -> Self { Self::V0(V0 { - pipeline: None, idx: 0, latest_status: std::process::ExitStatus::from_raw(0), pwd: std::env::current_dir().unwrap(), @@ -31,20 +29,6 @@ impl Env { }) } - pub fn pipeline(&self) -> Option<&str> { - match self { - Self::V0(env) => env.pipeline.as_deref(), - } - } - - pub fn set_pipeline(&mut self, pipeline: String) { - match self { - Self::V0(env) => { - env.pipeline = Some(pipeline); - } - } - } - pub fn idx(&self) -> usize { match self { Self::V0(env) => env.idx, -- cgit v1.2.3-54-g00ecf