aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-html-editor-selection.c')
-rw-r--r--e-util/e-html-editor-selection.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 02c5586824..62837f4f67 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -1158,13 +1158,6 @@ create_list_element (EHTMLEditorSelection *selection,
}
static void
-remove_node (WebKitDOMNode *node)
-{
- webkit_dom_node_remove_child (
- webkit_dom_node_get_parent_node (node), node, NULL);
-}
-
-static void
format_change_list_from_list (EHTMLEditorSelection *selection,
WebKitDOMDocument *document,
EHTMLEditorSelectionBlockFormat to,
@@ -1735,28 +1728,6 @@ format_change_block_to_block (EHTMLEditorSelection *selection,
}
static void
-remove_node_if_empty (WebKitDOMNode *node)
-{
- if (!WEBKIT_DOM_IS_NODE (node))
- return;
-
- if (!webkit_dom_node_get_first_child (node)) {
- remove_node (node);
- } else {
- gchar *text_content;
-
- text_content = webkit_dom_node_get_text_content (node);
- if (!text_content)
- remove_node (node);
-
- if (text_content && !*text_content)
- remove_node (node);
-
- g_free (text_content);
- }
-}
-
-static void
format_change_block_to_list (EHTMLEditorSelection *selection,
EHTMLEditorSelectionBlockFormat format,
EHTMLEditorView *view,