From 517b73b341015d1cc2a0201041729e2a355900e8 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 30 Jul 2020 20:03:38 -0700 Subject: [PATCH] Remove unused withLimits parameter. --- Frameworks/ArticlesDatabase/ArticlesTable.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frameworks/ArticlesDatabase/ArticlesTable.swift b/Frameworks/ArticlesDatabase/ArticlesTable.swift index 294ee41f4..f1c59a90d 100644 --- a/Frameworks/ArticlesDatabase/ArticlesTable.swift +++ b/Frameworks/ArticlesDatabase/ArticlesTable.swift @@ -47,11 +47,11 @@ final class ArticlesTable: DatabaseTable { // MARK: - Fetching Articles for Feed func fetchArticles(_ webFeedID: String) throws -> Set
{ - return try fetchArticles{ self.fetchArticlesForFeedID(webFeedID, withLimits: true, $0) } + return try fetchArticles{ self.fetchArticlesForFeedID(webFeedID, $0) } } func fetchArticlesAsync(_ webFeedID: String, _ completion: @escaping ArticleSetResultBlock) { - fetchArticlesAsync({ self.fetchArticlesForFeedID(webFeedID, withLimits: true, $0) }, completion) + fetchArticlesAsync({ self.fetchArticlesForFeedID(webFeedID, $0) }, completion) } func fetchArticles(_ webFeedIDs: Set) throws -> Set
{ @@ -203,7 +203,7 @@ final class ArticlesTable: DatabaseTable { return } - let fetchedArticles = self.fetchArticlesForFeedID(webFeedID, withLimits: false, database) //4 + let fetchedArticles = self.fetchArticlesForFeedID(webFeedID, database) //4 let fetchedArticlesDictionary = fetchedArticles.dictionary() let newArticles = self.findAndSaveNewArticles(incomingArticles, fetchedArticlesDictionary, database) //5 @@ -803,7 +803,7 @@ private extension ArticlesTable { return fetchArticlesWithWhereClause(database, whereClause: whereClause, parameters: parameters) } - func fetchArticlesForFeedID(_ webFeedID: String, withLimits: Bool, _ database: FMDatabase) -> Set
{ + func fetchArticlesForFeedID(_ webFeedID: String, _ database: FMDatabase) -> Set
{ return fetchArticlesWithWhereClause(database, whereClause: "articles.feedID = ?", parameters: [webFeedID as AnyObject]) }