summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2021-02-11 07:56:31 +0100
committerBenjamin Brahmer <info@b-brahmer.de>2021-02-16 11:01:10 +0100
commit6cd83ea1da4d24d439a5f30bfc13349f0c25e597 (patch)
treed112b6adc95d0648c6b7ac221bac0998f4e5fdf7 /lib/Fetcher
parentc09b4d8d3341780022dfdd3edbe5352a1d4a4abd (diff)
remove unused lastModified from feed fetcher
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'lib/Fetcher')
-rwxr-xr-xlib/Fetcher/FeedFetcher.php1
-rw-r--r--lib/Fetcher/Fetcher.php4
-rw-r--r--lib/Fetcher/IFeedFetcher.php5
3 files changed, 1 insertions, 9 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php
index a70e67114..3035b0e5e 100755
--- a/lib/Fetcher/FeedFetcher.php
+++ b/lib/Fetcher/FeedFetcher.php
@@ -107,7 +107,6 @@ class FeedFetcher implements IFeedFetcher
*/
public function fetch(
string $url,
- ?string $lastModified,
bool $fullTextEnabled,
?string $user,
?string $password
diff --git a/lib/Fetcher/Fetcher.php b/lib/Fetcher/Fetcher.php
index 724c264bc..8c755bc85 100644
--- a/lib/Fetcher/Fetcher.php
+++ b/lib/Fetcher/Fetcher.php
@@ -44,8 +44,6 @@ class Fetcher
* Fetch a feed from remote
*
* @param string $url remote url of the feed
- * @param string|null $lastModified a last modified value from an http header defaults to false.
- * If lastModified matches the http header from the feed no results are fetched
* @param bool $fullTextEnabled If true use a scraper to download the full article
* @param string|null $user if given, basic auth is set for this feed
* @param string|null $password if given, basic auth is set for this feed. Ignored if user is empty
@@ -56,7 +54,6 @@ class Fetcher
*/
public function fetch(
string $url,
- ?string $lastModified = null,
bool $fullTextEnabled = false,
?string $user = null,
?string $password = null
@@ -67,7 +64,6 @@ class Fetcher
}
return $fetcher->fetch(
$url,
- $lastModified,
$fullTextEnabled,
$user,
$password
diff --git a/lib/Fetcher/IFeedFetcher.php b/lib/Fetcher/IFeedFetcher.php
index abb367889..45e0915f0 100644
--- a/lib/Fetcher/IFeedFetcher.php
+++ b/lib/Fetcher/IFeedFetcher.php
@@ -24,9 +24,7 @@ interface IFeedFetcher
* Fetch feed content.
*
* @param string $url remote url of the feed
- * @param string|null $lastModified a last modified value from an http header defaults to false.
- * If lastModified matches the http header from the feed no results are fetched
- * @param bool $fullTextEnabled If true use a scraper to download the full article
+ * @param bool $fullTextEnabled If true use a scraper to download the full article
* @param string|null $user if given, basic auth is set for this feed
* @param string|null $password if given, basic auth is set for this feed. Ignored if user is empty
*
@@ -37,7 +35,6 @@ interface IFeedFetcher
*/
public function fetch(
string $url,
- ?string $lastModified,
bool $fullTextEnabled,
?string $user,
?string $password