Berthold Stoeger cd32c280ae undo: remove invalidate_dive_cache() call from make_first_dc()
The make_first_dc() function clones a dive with a certain dive
computer moved to the front. This is used by the
MoveDiveComputerToFront undo command.

make_first_dc() calls invalidate_dive(). However, the undo
command does that by itself on every undo/redo. Thus,
remove the call in make_first_dc().

Aside from consistency, the goal is to move invalidate_dive()
to command/* so that we can be more aggressive about the whole
topic: Store only "const dive *" pointers and thus force any
writing access to explicitly invalidate the dive cache.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-01-11 08:42:17 -08:00
..
2019-08-08 08:56:44 -07:00
2019-08-08 16:26:31 -07:00
2020-12-17 08:10:56 -08:00
2017-04-29 13:32:55 -07:00
2020-10-24 09:51:37 -07:00
2020-10-24 09:51:37 -07:00
2020-09-29 16:13:03 -07:00
2018-10-21 19:55:09 +03:00
2021-01-06 10:18:23 -08:00
2021-01-10 15:57:39 -08:00
2020-10-24 09:51:37 -07:00
2020-10-24 09:51:37 -07:00
2021-01-10 15:57:39 -08:00
2021-01-10 15:57:39 -08:00
2020-04-18 13:41:29 +02:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2020-12-29 08:34:09 -08:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2020-05-03 15:02:21 -07:00