summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 3df6fbf70..30d829049 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1161,7 +1161,6 @@ static void cell_edited_cb(GtkCellRendererText *cell, gchar *path,
holdnicknames->firmware = NULL;
holdnicknames->nickname = strdup(new_text);
holdnicknames->next = NULL;
- holdnicknames->saved = FALSE;
} else {
struct device_info * top = NULL;
struct device_info * last = holdnicknames;
@@ -1172,7 +1171,6 @@ static void cell_edited_cb(GtkCellRendererText *cell, gchar *path,
top->firmware = NULL;
top->nickname = strdup(new_text);
top->next = last;
- top->saved = FALSE;
holdnicknames = top;
}
}
@@ -1921,19 +1919,6 @@ const char *get_dc_nickname(const char *model, uint32_t deviceid)
return NULL;
}
-gboolean dc_was_saved(struct divecomputer *dc)
-{
- struct device_info *nn_entry = get_device_info(dc->model, dc->deviceid);
- return nn_entry && nn_entry->saved;
-}
-
-void mark_dc_saved(struct divecomputer *dc)
-{
- struct device_info *nn_entry = get_device_info(dc->model, dc->deviceid);
- if (nn_entry)
- nn_entry->saved = TRUE;
-}
-
/* no curly braces or commas, please */
static char *cleanedup_nickname(const char *nickname, int len)
{