summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-07 16:13:13 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-07 16:55:43 -0700
commit2627ea927d06f260f7ee08d8fc45718a28018395 (patch)
treed0d0274d32d16090f9bc18279df43469a4138127 /divelist.c
parent054406b420c7a4bbabbe839f25966fa121adfb5f (diff)
downloadsubsurface-2627ea927d06f260f7ee08d8fc45718a28018395.tar.gz
Next round of code removal and header cleanup
None of this is used anywhere Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/divelist.c b/divelist.c
index 921f9d4ee..69393f2f6 100644
--- a/divelist.c
+++ b/divelist.c
@@ -12,9 +12,6 @@
* int get_divenr(struct dive *dive)
* double init_decompression(struct dive *dive)
* void update_cylinder_related_info(struct dive *dive)
- * void get_location(struct dive *dive, char **str)
- * void get_cylinder(struct dive *dive, char **str)
- * void get_suit(struct dive *dive, char **str)
* void dump_trip_list(void)
* dive_trip_t *find_matching_trip(timestamp_t when)
* void insert_trip(dive_trip_t **dive_trip_p)
@@ -101,38 +98,6 @@ int trip_has_selected_dives(dive_trip_t *trip)
return 0;
}
-/* Get the values as we want to show them. Whole feet. But meters with one decimal for
- * values less than 20m, without decimals for larger values */
-void get_depth_values(int depth, int *depth_int, int *depth_decimal, int *show_decimal)
-{
- int integer, frac;
-
- *show_decimal = 1;
- switch (prefs.units.length) {
- case METERS:
- /* To tenths of meters */
- depth = (depth + 49) / 100;
- integer = depth / 10;
- frac = depth % 10;
- if (integer < 20)
- break;
- if (frac >= 5)
- integer++;
- *show_decimal = 0;
- break;
- case FEET:
- integer = mm_to_feet(depth) + 0.5;
- *show_decimal = 0;
- break;
- default:
- /* can't happen */
- return;
- }
- *depth_int = integer;
- if (*show_decimal)
- *depth_decimal = frac;
-}
-
/*
* Get "maximal" dive gas for a dive.
* Rules: