From b3afe463ffed9cbf57b685bb6dd21d5af575d205 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 10 Nov 2023 15:08:08 -0600 Subject: [PATCH] refactor(toml): Remove unused method --- src/cargo/util/toml/mod.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index b634ff654ad..273724e5e7b 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -1548,9 +1548,6 @@ pub trait WorkspaceInherit { /// This is the workspace table that is being inherited from. /// For example `[workspace.dependencies]` would be the table "dependencies" fn inherit_toml_table(&self) -> &str; - - /// This is used to output the value of the implementors `workspace` field - fn workspace(&self) -> bool; } impl schema::MaybeWorkspace { @@ -1598,10 +1595,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceField { fn inherit_toml_table(&self) -> &str { "package" } - - fn workspace(&self) -> bool { - self.workspace - } } impl schema::TomlWorkspaceDependency { @@ -1684,10 +1677,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceDependency { fn inherit_toml_table(&self) -> &str { "dependencies" } - - fn workspace(&self) -> bool { - self.workspace - } } impl schema::TomlDependency

{