summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-09-13 22:28:25 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2016-09-13 22:28:25 (GMT)
commitbd4377d693a8082168c618ad1da172daebcd1662 (patch)
tree320310921b92d4adbb3f6b5e0f3bc81d3e0999d9
parente582497322428f72343115f055e9e198047fe3b4 (diff)
downloadnetsurf-bd4377d693a8082168c618ad1da172daebcd1662.tar.gz
netsurf-bd4377d693a8082168c618ad1da172daebcd1662.tar.bz2
remove cookie manage display of the no_delete boolean
The no_delete flag is mislabelled as persistent. In fact it is simply never altered from its default value. It is serialised and its state kept on disc but otherwise is completely vestigial.
-rw-r--r--desktop/cookie_manager.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/desktop/cookie_manager.c b/desktop/cookie_manager.c
index d3d5a7d..6134fa5 100644
--- a/desktop/cookie_manager.c
+++ b/desktop/cookie_manager.c
@@ -52,7 +52,6 @@ enum cookie_manager_field {
COOKIE_M_LAST_USED,
COOKIE_M_RESTRICTIONS,
COOKIE_M_VERSION,
- COOKIE_M_PERSISTENT,
COOKIE_M_DOMAIN_FOLDER,
COOKIE_M_N_FIELDS
};
@@ -333,13 +332,6 @@ cookie_manager_set_treeview_field_data(struct cookie_manager_entry *e,
break;
}
- /* Set the Persistent text */
- if (data->no_destroy) {
- e->data[COOKIE_M_PERSISTENT] = cm_ctx.values[COOKIE_M_YES];
- } else {
- e->data[COOKIE_M_PERSISTENT] = cm_ctx.values[COOKIE_M_NO];
- }
-
return NSERROR_OK;
}
@@ -638,15 +630,6 @@ static nserror cookie_manager_init_entry_fields(void)
goto error;
}
- cm_ctx.fields[COOKIE_M_PERSISTENT].flags = TREE_FLAG_SHOW_NAME;
- label = "TreeviewLabelPersistent";
- label = messages_get(label);
- if (lwc_intern_string(label, strlen(label),
- &cm_ctx.fields[COOKIE_M_PERSISTENT].field) !=
- lwc_error_ok) {
- goto error;
- }
-
cm_ctx.fields[COOKIE_M_DOMAIN_FOLDER].flags = TREE_FLAG_DEFAULT;
label = "TreeviewLabelDomainFolder";
label = messages_get(label);
@@ -710,15 +693,6 @@ static nserror cookie_manager_init_common_values(void)
cookie_manager_field_builder(COOKIE_M_VERSION,
&cm_ctx.values[COOKIE_M_RFC2965], strdup(temp));
- /* Set the Persistent value text */
- temp = messages_get("Yes");
- cookie_manager_field_builder(COOKIE_M_PERSISTENT,
- &cm_ctx.values[COOKIE_M_YES], strdup(temp));
-
- temp = messages_get("No");
- cookie_manager_field_builder(COOKIE_M_PERSISTENT,
- &cm_ctx.values[COOKIE_M_NO], strdup(temp));
-
return NSERROR_OK;
}