summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 10:22:08 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 10:22:08 -0700
commit1d69524a7889ffa74a3e28004d9096524834053a (patch)
tree568de246e54950d24aaa3b2cb17761de9d93344f
parent8e95ded57bdbaa66ba1c2ec25c55a56d53bce943 (diff)
downloadsubsurface-1d69524a7889ffa74a3e28004d9096524834053a.tar.gz
Get rid of now unused 'show_dive()' function
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--main.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/main.c b/main.c
index 7cc1fce14..b7df3bfaa 100644
--- a/main.c
+++ b/main.c
@@ -5,33 +5,6 @@
#include "dive.h"
#include "display.h"
-static void show_dive(int nr, struct dive *dive)
-{
- int i;
- struct tm *tm;
-
- tm = gmtime(&dive->when);
-
- printf("At %02d:%02d:%02d %04d-%02d-%02d (%d ft max, %d minutes)\n",
- tm->tm_hour, tm->tm_min, tm->tm_sec,
- tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
- to_feet(dive->maxdepth), dive->duration.seconds / 60);
-
- if (!verbose)
- return;
-
- for (i = 0; i < dive->samples; i++) {
- struct sample *s = dive->sample + i;
-
- printf("%4d:%02d: %3d ft, %2d C, %4d PSI\n",
- s->time.seconds / 60,
- s->time.seconds % 60,
- to_feet(s->depth),
- to_C(s->temperature),
- to_PSI(s->tankpressure));
- }
-}
-
static int sortfn(const void *_a, const void *_b)
{
const struct dive *a = *(void **)_a;