Commit 5951f55f authored by alexpott's avatar alexpott

Issue #2228733 by ParisLiakos, chx, marcingy: Remove getFeedDuplicates - its unused and untested

parent 65edcac3
...@@ -17,24 +17,6 @@ ...@@ -17,24 +17,6 @@
*/ */
class FeedStorage extends SqlContentEntityStorage implements FeedStorageInterface { class FeedStorage extends SqlContentEntityStorage implements FeedStorageInterface {
/**
* {@inheritdoc}
*/
public function getFeedDuplicates(FeedInterface $feed) {
$query = \Drupal::entityQuery('aggregator_feed');
$or_condition = $query->orConditionGroup()
->condition('title', $feed->label())
->condition('url', $feed->getUrl());
$query->condition($or_condition);
if ($feed->id()) {
$query->condition('fid', $feed->id(), '<>');
}
return $this->loadMultiple($query->execute());
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -15,17 +15,6 @@ ...@@ -15,17 +15,6 @@
*/ */
interface FeedStorageInterface extends EntityStorageInterface { interface FeedStorageInterface extends EntityStorageInterface {
/**
* Provides a list of duplicate feeds.
*
* @param \Drupal\aggregator\Entity\FeedInterface $feed
* The feed entity.
*
* @return
* An array with the list of duplicated feeds.
*/
public function getFeedDuplicates(FeedInterface $feed);
/** /**
* Returns the fids of feeds that need to be refreshed. * Returns the fids of feeds that need to be refreshed.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment