Skip to content

Commit

Permalink
Auto merge of #12961 - epage:dead, r=weihanglo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Nov 12, 2023
2 parents 309473f + b3afe46 commit 984bd91
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, W: WorkspaceInherit> schema::MaybeWorkspace<T, W> {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -1684,10 +1677,6 @@ impl WorkspaceInherit for schema::TomlWorkspaceDependency {
fn inherit_toml_table(&self) -> &str {
"dependencies"
}

fn workspace(&self) -> bool {
self.workspace
}
}

impl<P: ResolveToPath + Clone> schema::TomlDependency<P> {
Expand Down

0 comments on commit 984bd91

Please sign in to comment.