From 45c08cd155fa400f0f347b07fd4bbf6a541ccddd Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 17 May 2024 22:40:29 -0700 Subject: [PATCH] Delete no-longer-used function. --- .../Feedly/FeedlyTestSupport.swift | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/Account/Tests/AccountTests/Feedly/FeedlyTestSupport.swift b/Account/Tests/AccountTests/Feedly/FeedlyTestSupport.swift index 53ea6d4f3..3bb62a48f 100644 --- a/Account/Tests/AccountTests/Feedly/FeedlyTestSupport.swift +++ b/Account/Tests/AccountTests/Feedly/FeedlyTestSupport.swift @@ -271,41 +271,4 @@ class FeedlyTestSupport { XCTAssertEqual(items.count, entries.count) XCTAssertTrue(missing.isEmpty, "Failed to create \(FeedlyEntry.self) values from objects in the JSON with these ids.") } - - func makeParsedItemTestDataFor(numberOfFeeds: Int, numberOfItemsInFeeds: Int) -> [String: Set] { - let ids = (0.. (String, [Int]) in - return (feedId, (0.. (String, Set) in - let items = pair.1.map { index -> ParsedItem in - ParsedItem(syncServiceID: "\(pair.0)/articles/\(index)", - uniqueID: UUID().uuidString, - feedURL: pair.0, - url: "http://localhost/", - externalURL: "http://localhost/\(pair.0)/articles/\(index).html", - title: "Title\(index)", - language: nil, - contentHTML: "Content \(index) HTML.", - contentText: "Content \(index) Text", - summary: nil, - imageURL: nil, - bannerImageURL: nil, - datePublished: nil, - dateModified: nil, - authors: nil, - tags: nil, - attachments: nil) - } - return (pair.0, Set(items)) - }.reduce([String: Set](minimumCapacity: feedIDsAndItemCounts.count)) { (dict, pair) in - var mutant = dict - mutant[pair.0] = pair.1 - return mutant - } - - return entries - } }