mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
core: remove create_device_node() from fixup_dive()
The device nodes are created for all DCs, when importing the dives. There is no point in creating only the device node for the first DC in fixup_dive(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
74d84a959a
commit
b7a586a5b4
1 changed files with 0 additions and 4 deletions
|
@ -1593,10 +1593,6 @@ static void fixup_no_o2sensors(struct divecomputer *dc)
|
|||
|
||||
static void fixup_dive_dc(struct dive *dive, struct divecomputer *dc)
|
||||
{
|
||||
/* Add device information to table */
|
||||
if (dc->deviceid && (dc->serial || dc->fw_version))
|
||||
create_device_node(&device_table, dc->model, dc->deviceid, dc->serial, dc->fw_version, "");
|
||||
|
||||
/* Fixup duration and mean depth */
|
||||
fixup_dc_duration(dc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue