Skip to content

Commit 984bd91

Browse files
committed
Auto merge of #12961 - epage:dead, r=weihanglo
refactor(toml): Remove unused method ### What does this PR try to resolve? While finding better homes for logic for #12801, I found this part of the workspace-inheritance trait was unused. ### How should we test and review this PR? ### Additional information
2 parents 309473f + b3afe46 commit 984bd91

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,9 +1548,6 @@ pub trait WorkspaceInherit {
15481548
/// This is the workspace table that is being inherited from.
15491549
/// For example `[workspace.dependencies]` would be the table "dependencies"
15501550
fn inherit_toml_table(&self) -> &str;
1551-
1552-
/// This is used to output the value of the implementors `workspace` field
1553-
fn workspace(&self) -> bool;
15541551
}
15551552

15561553
impl<T, W: WorkspaceInherit> schema::MaybeWorkspace<T, W> {
@@ -1598,10 +1595,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceField {
15981595
fn inherit_toml_table(&self) -> &str {
15991596
"package"
16001597
}
1601-
1602-
fn workspace(&self) -> bool {
1603-
self.workspace
1604-
}
16051598
}
16061599

16071600
impl schema::TomlWorkspaceDependency {
@@ -1684,10 +1677,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceDependency {
16841677
fn inherit_toml_table(&self) -> &str {
16851678
"dependencies"
16861679
}
1687-
1688-
fn workspace(&self) -> bool {
1689-
self.workspace
1690-
}
16911680
}
16921681

16931682
impl<P: ResolveToPath + Clone> schema::TomlDependency<P> {

0 commit comments

Comments
 (0)