core: remove update_event_name

Since the name of an event is not incorporated into the even
structure anymore, we don't need these shenanigans. Just assign
the event name.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-19 13:21:22 +02:00 committed by bstoeger
parent f120fecccb
commit 8ddc960fa0
3 changed files with 1 additions and 26 deletions

View file

@ -765,7 +765,7 @@ static void smtk_parse_bookmarks(MdbHandle *mdb, struct dive *d, char *dive_idx)
const char *tmp = table.get_data(2);
ev = find_bookmark(d->dc.events, time);
if (ev)
update_event_name(d, 0, ev, tmp);
ev->name = tmp;
else
if (!add_event(&d->dc, time, SAMPLE_EVENT_BOOKMARK, 0, 0, tmp))
report_error("[smtk-import] Error - Couldn't add bookmark, dive %d, Name = %s",