Skip to content

Commit

Permalink
remove some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Oct 19, 2023
1 parent fe0ac50 commit 939ebc0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/cargo/core/package_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@ impl PackageId {
self.inner.source_id
}

pub fn with_precise(self, precise: Option<String>) -> PackageId {
PackageId::pure(
self.inner.name,
self.inner.version.clone(),
self.inner.source_id.with_precise(precise),
)
}

pub fn with_source_id(self, source: SourceId) -> PackageId {
PackageId::pure(self.inner.name, self.inner.version.clone(), source)
}
Expand Down

0 comments on commit 939ebc0

Please sign in to comment.