Skip to content

Commit 42f1427

Browse files
committed
refactor(workspace): remove unused PackageQueryArgs accessor methods
Remove is_recursive(), is_workspace_root(), and filter() accessors that were only used by vp exec's root-exclusion logic, which is being removed in vite-plus.
1 parent 09513bc commit 42f1427

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

crates/vite_workspace/src/package_filter.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -245,21 +245,6 @@ Match packages by name, directory, or glob pattern.
245245
}
246246

247247
impl PackageQueryArgs {
248-
/// Whether `--recursive` / `-r` was set.
249-
pub fn is_recursive(&self) -> bool {
250-
self.recursive
251-
}
252-
253-
/// Whether `--workspace-root` / `-w` was set.
254-
pub fn is_workspace_root(&self) -> bool {
255-
self.workspace_root
256-
}
257-
258-
/// The `--filter` / `-F` values (possibly empty).
259-
pub fn filter(&self) -> &[Str] {
260-
&self.filter
261-
}
262-
263248
/// Convert CLI arguments into an opaque [`PackageQuery`].
264249
///
265250
/// `package_name` is the optional package name from a `package#task` specifier.

0 commit comments

Comments
 (0)