diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-11-08 14:11:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-08 11:17:20 -0800 |
commit | a7a022d8db5790dc7e9d934e57465043e09667b8 (patch) | |
tree | 75937205a819510436f5c4477ed8a827ef5345e1 /file.c | |
parent | 0b0e5d834fbf91ecbf7b8bd59b4db7e69d77b42d (diff) | |
download | subsurface-a7a022d8db5790dc7e9d934e57465043e09667b8.tar.gz |
Remove unused variables and code from seabear-csv
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -708,7 +708,7 @@ int parse_csv_file(const char *filename, int timef, int depthf, int tempf, int p int parse_seabear_csv_file(const char *filename, int timef, int depthf, int tempf, int po2f, int cnsf, int ndlf, int ttsf, int stopdepthf, int pressuref, int sepidx, const char *csvtemplate, int unitidx) { - struct memblock mem, mem_data; + struct memblock mem; char *params[27]; char timebuf[MAXCOLDIGITS]; char depthbuf[MAXCOLDIGITS]; @@ -781,8 +781,6 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp } /* Move the CSV data to the start of mem buffer */ - mem_data.size = (int)mem.size - (ptr_old - (char*)mem.buffer); - mem_data.buffer = ptr_old; memmove(mem.buffer, ptr_old, mem.size - (ptr_old - (char*)mem.buffer)); mem.size = (int)mem.size - (ptr_old - (char*)mem.buffer); |