subsurface/commands
Berthold Stoeger 048cdcaa31 cleanup: remove count_divecomputers() function
There is a number_of_computers() function which does
the same thing with two exceptions:
1) checks for null-dive
2) returns an unsigned int

Replace calls to count_divecomputers() by calls to number_of_computers().
In one case, the return type makes a different - add a cast to int there.
Ultimately, we should probably change the dc_number to signed int
throughout the code.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-09-08 17:20:09 -07:00
..
CMakeLists.txt
command.cpp undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00
command.h undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00
command_base.cpp
command_base.h
command_divelist.cpp cleanup: remove count_divecomputers() function 2020-09-08 17:20:09 -07:00
command_divelist.h
command_divesite.cpp cleanup: copy string in taxonomy_set_[country|category] 2020-09-06 12:59:54 -07:00
command_divesite.h
command_edit.cpp cleanup: consistently use get_cylinder() accessor 2020-08-21 08:48:22 -07:00
command_edit.h
command_edit_trip.cpp
command_edit_trip.h
command_event.cpp
command_event.h
command_pictures.cpp media: give newly created dive sites a name 2020-05-08 08:51:37 -07:00
command_pictures.h undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00