summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Jef Driesen <jefdriesen@telenet.be>2013-12-23 21:03:19 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-24 09:57:04 -0800
commitbadce21b242affd8585cfc112290a445c3142315 (patch)
treed09b6b074061043525fe8391959d6f66aae11bc9 /libdivecomputer.c
parentdbd14f8662e4405fe7170e801ddae2adc2bc6f8b (diff)
downloadsubsurface-badce21b242affd8585cfc112290a445c3142315.tar.gz
Remove an unnecessary function call.
Signed-off-by: Jef Driesen <jefdriesen@telenet.be> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 98245fb9b..bfa223731 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -516,12 +516,6 @@ static int dive_cb(const unsigned char *data, unsigned int size,
return 1;
}
-
-static dc_status_t import_device_data(dc_device_t *device, device_data_t *devicedata)
-{
- return dc_device_foreach(device, dive_cb, devicedata);
-}
-
/*
* The device ID for libdivecomputer devices is the first 32-bit word
* of the SHA1 hash of the model/firmware/serial numbers.
@@ -677,7 +671,7 @@ static const char *do_device_import(device_data_t *data)
if (rc != DC_STATUS_SUCCESS)
return translate("gettextFromC","Error registering the cancellation handler.");
- rc = import_device_data(device, data);
+ rc = dc_device_foreach(device, dive_cb, data);
if (rc != DC_STATUS_SUCCESS)
return translate("gettextFromC","Dive data import error");