File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -244,25 +244,6 @@ impl<'gctx> Workspace<'gctx> {
244
244
}
245
245
}
246
246
247
- pub fn new_virtual (
248
- root_path : PathBuf ,
249
- current_manifest : PathBuf ,
250
- manifest : VirtualManifest ,
251
- gctx : & ' gctx GlobalContext ,
252
- ) -> CargoResult < Workspace < ' gctx > > {
253
- let mut ws = Workspace :: new_default ( current_manifest, gctx) ;
254
- ws. root_manifest = Some ( root_path. join ( "Cargo.toml" ) ) ;
255
- ws. target_dir = gctx. target_dir ( ) ?;
256
- ws. packages
257
- . packages
258
- . insert ( root_path, MaybePackage :: Virtual ( manifest) ) ;
259
- ws. find_members ( ) ?;
260
- ws. set_resolve_behavior ( ) ?;
261
- // TODO: validation does not work because it walks up the directory
262
- // tree looking for the root which is a fake file that doesn't exist.
263
- Ok ( ws)
264
- }
265
-
266
247
/// Creates a "temporary workspace" from one package which only contains
267
248
/// that package.
268
249
///
You can’t perform that action at this time.
0 commit comments