@@ -21,8 +21,6 @@ pub enum RoozVolumeSharing {
2121
2222#[ derive( Debug , Clone ) ]
2323pub enum RoozVolumeRole {
24- //TODO: remove in v2
25- //Home,
2624 Work ,
2725 Cache ,
2826 Data ,
@@ -34,8 +32,6 @@ pub enum RoozVolumeRole {
3432impl RoozVolumeRole {
3533 pub fn as_str ( & self ) -> & str {
3634 match self {
37- //TODO: remove in v2
38- //RoozVolumeRole::Home => HOME_ROLE,
3935 RoozVolumeRole :: Work => WORK_ROLE ,
4036 RoozVolumeRole :: Cache => CACHE_ROLE ,
4137 RoozVolumeRole :: Data => DATA_ROLE ,
@@ -123,20 +119,6 @@ impl RoozVolume {
123119 }
124120 }
125121
126- //TODO: remove once v2 is up
127- // pub fn home(key: &str, path: &str) -> RoozVolume {
128- // RoozVolume {
129- // path: path.into(),
130- // sharing: RoozVolumeSharing::Exclusive { key: key.into() },
131- // role: RoozVolumeRole::Home,
132- // files: None,
133- // labels: Some(Labels::from(&[
134- // Labels::workspace(key),
135- // Labels::role(RoozVolumeRole::Home.as_str()),
136- // ])),
137- // }
138- // }
139-
140122 pub fn cache ( path : & str ) -> RoozVolume {
141123 RoozVolume {
142124 path : path. into ( ) ,
@@ -185,7 +167,7 @@ impl RoozVolume {
185167 } ,
186168 None => RoozVolume {
187169 path : path. into ( ) ,
188- role : role ,
170+ role,
189171 sharing : RoozVolumeSharing :: Exclusive {
190172 key : workspace_key. into ( ) ,
191173 } ,
0 commit comments