summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/divelist.c b/core/divelist.c
index a15c40d83..9e67e55c2 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -807,13 +807,9 @@ void process_loaded_dives()
int i;
struct dive *dive;
- /* Register dive computer nick names and count shown dives. */
- shown_dives = 0;
- for_each_dive(i, dive) {
- if (!dive->hidden_by_filter)
- shown_dives++;
+ /* Register dive computer nick names. */
+ for_each_dive(i, dive)
add_devices_of_dive(dive, &device_table);
- }
sort_dive_table(&dive_table);
sort_trip_table(&trip_table);