mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove unused variables
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c7f803b878
commit
299133d7b1
1 changed files with 0 additions and 6 deletions
|
@ -2016,9 +2016,6 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
|
|||
{
|
||||
int i, interval, retval = 0;
|
||||
sqlite3 *handle = (sqlite3 *)param;
|
||||
float *profileBlob;
|
||||
unsigned char *tempBlob;
|
||||
int *pressureBlob;
|
||||
unsigned const char *sampleBlob;
|
||||
char *err = NULL;
|
||||
char get_events_template[] = "select * from Mark where DiveId = %d";
|
||||
|
@ -2084,9 +2081,6 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
|
|||
cur_dive->dc.surface_pressure.mbar = (atoi(data[14]) * 1000);
|
||||
|
||||
interval = data[16] ? atoi(data[16]) : 0;
|
||||
profileBlob = (float *)(data[17] + 3);
|
||||
tempBlob = (unsigned char *)(data[17] + 10);
|
||||
pressureBlob = (int *)(data[17] + 7);
|
||||
sampleBlob = (unsigned const char *)data[17];
|
||||
for (i = 0; interval && i * interval < cur_dive->duration.seconds; i++) {
|
||||
float *depth = (float *)&sampleBlob[i * 16 + 3];
|
||||
|
|
Loading…
Add table
Reference in a new issue