From 6f16a2715e0f20b6e42539731ba9f7874361042c Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 17 Jun 2019 21:47:17 -0700 Subject: [PATCH] =?UTF-8?q?Skip=20downloading=20featured=20images,=20since?= =?UTF-8?q?=20we=E2=80=99re=20not=20displaying=20them=20anywhere.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Timeline/TimelineViewController.swift | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Mac/MainWindow/Timeline/TimelineViewController.swift b/Mac/MainWindow/Timeline/TimelineViewController.swift index 60f76fa0f..1eed90561 100644 --- a/Mac/MainWindow/Timeline/TimelineViewController.swift +++ b/Mac/MainWindow/Timeline/TimelineViewController.swift @@ -778,13 +778,17 @@ extension TimelineViewController: NSTableViewDelegate { } private func featuredImageFor(_ article: Article) -> NSImage? { - - if let url = article.imageURL { - if let imageData = appDelegate.imageDownloader.image(for: url) { - return NSImage(data: imageData) - } - } + // At this writing (17 June 2019) we’re not displaying featured images anywhere, + // so let’s skip downloading them even if we find them. + // + // We’ll revisit this later. +// if let url = article.imageURL { +// if let imageData = appDelegate.imageDownloader.image(for: url) { +// return NSImage(data: imageData) +// } +// } + return nil }