diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-19 19:50:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-24 09:51:37 -0700 |
commit | b7a586a5b45477b8728301977ad1855234ca6b6b (patch) | |
tree | 98104a1c4abc3a4a4db46a3c048b7fd1e9eb99a5 | |
parent | 74d84a959a430e231db95c7dae9304927360fb7f (diff) | |
download | subsurface-b7a586a5b45477b8728301977ad1855234ca6b6b.tar.gz |
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>
-rw-r--r-- | core/dive.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/dive.c b/core/dive.c index 065000970..f25864905 100644 --- a/core/dive.c +++ b/core/dive.c @@ -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); |