summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-28 12:54:41 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-28 17:30:25 +0100
commit1ce9b5bb9af7c67644b071ba5f2e14bb00f04e7c (patch)
treea72fe174495e3fe0e08b0b124e808a69f13593ce /qt-models
parent6fa23f74f73d9baeb871670de0dcb6f5d3838cde (diff)
downloadsubsurface-1ce9b5bb9af7c67644b071ba5f2e14bb00f04e7c.tar.gz
cleanup: Logically dead code
CID 208318 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divetripmodel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp
index b9693fcd2..b2ca11844 100644
--- a/qt-models/divetripmodel.cpp
+++ b/qt-models/divetripmodel.cpp
@@ -347,7 +347,6 @@ int DiveItem::countPhotos(dive *dive) const
int diveTotaltime = dive_endtime(dive) - dive->when; // taken during the dive, not before/after.
int pic_offset, icon_index = 0;
FOR_EACH_PICTURE (dive) { // Step through each of the pictures for this dive:
- if (!picture) break; // if there are no pictures for this dive, return 0
pic_offset = picture->offset.seconds;
if ((pic_offset < -bufperiod) | (pic_offset > diveTotaltime+bufperiod)) {
icon_index |= 0x02; // If picture is before/after the dive