Berthold Stoeger 3aa1bb5bfa core: add remove_event_from_dc() function
We have a remove_event() function that
1) frees the event
2) works on the current divecomputer
3) compares the events because the profile has copies of events

However, for undo commands
1) we want to keep the event so that we can readd it later
2) we have to work on arbitrary divecomputers
3) we don't work with copies of events

Therefore, create a new remove_event_from_dc() function that
does all that. Moreover, make the event argument to remove_event()
const to (slightly) point out the difference in the API.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-04-07 00:13:35 +02:00
..
2019-09-27 16:26:58 -07:00
2019-08-08 08:56:44 -07:00
2019-08-08 16:26:31 -07:00
2019-08-08 16:26:31 -07:00
2020-03-20 15:20:44 -07:00
2017-04-29 13:32:55 -07:00
2020-03-17 16:50:20 -07:00
2019-08-11 08:20:38 +02:00
2018-10-21 19:55:09 +03:00
2020-03-17 16:50:20 -07:00
2020-03-01 10:21:44 -08:00
2019-11-28 12:23:04 -08:00
2020-01-27 09:51:31 -08:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2019-11-09 19:19:04 +01:00