From 52050fdc921bc6404ae637eee6169b684f62c244 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 24 Jan 2013 11:42:20 -0800 Subject: Save all dive computer nicknames - whether used or not We used to save dive computer information only if that dive computer was actually used in any of the dives we saved. But we can simplify the code if we just always save any dive computers we know about. And it does allow for some usage cases where you have nicknames for other peoples computers that you may not actively use, but you want to see if you end up loading multiple XML files in one go. So there's just no compelling reason to not just save all the info we have. And this will make it less painful to remove the "use system config for dive computer nicknames", because you can also use this to continue to gather dive computer info in a separate XML file if you want to. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- device.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'device.c') diff --git a/device.c b/device.c index 5b744224e..38e409980 100644 --- a/device.c +++ b/device.c @@ -51,16 +51,6 @@ struct device_info *create_device_info(const char *model, uint32_t deviceid) return entry; } -void clear_device_saved_status(void) -{ - struct device_info *nn_entry = device_info_list; - - while (nn_entry) { - nn_entry->saved = FALSE; - nn_entry = nn_entry->next; - } -} - /* do we have a DIFFERENT divecomputer of the same model? */ struct device_info *get_different_device_info(const char *model, uint32_t deviceid) { -- cgit v1.2.3-70-g09d2