summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-01-26 17:27:36 (GMT)
committerAlex Pott2015-01-26 17:27:36 (GMT)
commit5951f55ff389b89954b8656e46b5da0384a86c50 (patch)
tree497dfb0a3d69375633c14a622a34af04028158c4
parent65edcac35be5ab55dd9d8490d121ad7b56023453 (diff)
Issue #2228733 by ParisLiakos, chx, marcingy: Remove getFeedDuplicates - its unused and untested
-rw-r--r--core/modules/aggregator/src/FeedStorage.php18
-rw-r--r--core/modules/aggregator/src/FeedStorageInterface.php11
2 files changed, 0 insertions, 29 deletions
diff --git a/core/modules/aggregator/src/FeedStorage.php b/core/modules/aggregator/src/FeedStorage.php
index 9017974..ad9bfa3 100644
--- a/core/modules/aggregator/src/FeedStorage.php
+++ b/core/modules/aggregator/src/FeedStorage.php
@@ -20,24 +20,6 @@ class FeedStorage extends SqlContentEntityStorage implements FeedStorageInterfac
/**
* {@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}
- */
public function getFeedIdsToRefresh() {
return $this->database->query('SELECT fid FROM {aggregator_feed} WHERE queued = 0 AND checked + refresh < :time AND refresh <> :never', array(
':time' => REQUEST_TIME,
diff --git a/core/modules/aggregator/src/FeedStorageInterface.php b/core/modules/aggregator/src/FeedStorageInterface.php
index 87875b9..185e66c 100644
--- a/core/modules/aggregator/src/FeedStorageInterface.php
+++ b/core/modules/aggregator/src/FeedStorageInterface.php
@@ -16,17 +16,6 @@ use Drupal\Core\Entity\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.
*
* @return array