(
&mut self,
repo_id: RepoId,
link_id: &ExternalId,
link: &RepoLink,
)
| 548 | } |
| 549 | |
| 550 | pub fn remove_link( |
| 551 | &mut self, |
| 552 | repo_id: RepoId, |
| 553 | link_id: &ExternalId, |
| 554 | link: &RepoLink, |
| 555 | ) -> Result<()> { |
| 556 | self.check_can_update(repo_id)?; |
| 557 | |
| 558 | let searches = self.client.link_searches(Some(link.to_owned()))?; |
| 559 | self.indexer.remove_searches( |
| 560 | &self.client, |
| 561 | repo_id, |
| 562 | &link.to_search_entry(), |
| 563 | searches.iter(), |
| 564 | )?; |
| 565 | self.remove(repo_id, link_id) |
| 566 | } |
| 567 | |
| 568 | pub fn remove_topic( |
| 569 | &mut self, |
no test coverage detected