Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Remove unused server error image
Browse files Browse the repository at this point in the history
  • Loading branch information
pg8wood committed Jan 20, 2020
1 parent 14de655 commit 4d6c8ff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
5 changes: 0 additions & 5 deletions Common/Models/ServiceModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public class ServiceModel: NSManagedObject, Service, Identifiable {
var wasOnlineRecently: Bool {
return Date().timeIntervalSince(lastOnlineDate) <= 60 * 5
}

// TODO: remove this when removing the UIKit demonstration
var statusImage: UIImage {
return UIImage(named: wasOnlineRecently ? "check" : "server-error")!
}

var image: UIImage {
get {
Expand Down
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kSV-MZ-3xz">
<rect key="frame" x="350" y="0.0" width="40" height="111"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="server-error" translatesAutoresizingMaskIntoConstraints="NO" id="FIt-pS-KJu">
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="check" translatesAutoresizingMaskIntoConstraints="NO" id="FIt-pS-KJu">
<rect key="frame" x="0.0" y="35.5" width="40" height="40"/>
<constraints>
<constraint firstAttribute="width" secondItem="FIt-pS-KJu" secondAttribute="height" multiplier="1:1" id="grK-kF-BP6"/>
Expand Down Expand Up @@ -80,7 +80,7 @@
</collectionViewCell>
</objects>
<resources>
<image name="check" width="128" height="128"/>
<image name="missing-image" width="128" height="128"/>
<image name="server-error" width="512" height="512"/>
</resources>
</document>

0 comments on commit 4d6c8ff

Please sign in to comment.