[evolution] EHTMLEditorSelection - Remove unneeded code



commit 7d43a81c89fe255969631184495fb2f25daed27b
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Apr 2 14:05:51 2015 +0200

    EHTMLEditorSelection - Remove unneeded code

 e-util/e-html-editor-selection.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index b0a044a..07fdb7d 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -5754,16 +5754,12 @@ wrap_lines (EHTMLEditorSelection *selection,
        WebKitDOMElement *element;
        gint len, ii, br_count;
        gulong length_left;
-       glong paragraph_char_count;
        gchar *text_content;
 
        if (selection) {
                WebKitDOMNodeList *wrap_br;
                WebKitDOMRange *range;
 
-               paragraph_char_count = g_utf8_strlen (
-                       e_html_editor_selection_get_string (selection), -1);
-
                range = html_editor_selection_get_current_range (selection);
                fragment = webkit_dom_range_clone_contents (range, NULL);
                g_object_unref (range);
@@ -5792,11 +5788,6 @@ wrap_lines (EHTMLEditorSelection *selection,
                        WEBKIT_DOM_ELEMENT (paragraph_clone),
                        "span#-x-evo-caret-position",
                        NULL);
-               text_content = webkit_dom_node_get_text_content (paragraph_clone);
-               paragraph_char_count = g_utf8_strlen (text_content, -1);
-               if (element)
-                       paragraph_char_count--;
-               g_free (text_content);
 
                /* When we wrap, we are wrapping just the text after caret, text
                 * before the caret is already wrapped, so unwrap the text after


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]