[evolution/gnome-3-16] EHTMLEditorSelection - Remove unneeded code
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-16] EHTMLEditorSelection - Remove unneeded code
- Date: Thu, 2 Apr 2015 12:21:57 +0000 (UTC)
commit 3cd67e8c1d01e2debc639edf35e134b9e450fe4f
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 e447c78..0f445b3 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -5755,16 +5755,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);
@@ -5793,11 +5789,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]