[evolution/wip/webkit2] EHTMLEditorSelection - Remove unneeded code
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorSelection - Remove unneeded code
- Date: Wed, 24 Feb 2016 09:50:16 +0000 (UTC)
commit 12f98b5c521d09938046215800746bf8801087c8
Author: Tomas Popela <tpopela redhat com>
Date: Wed Feb 24 10:50:20 2016 +0100
EHTMLEditorSelection - Remove unneeded code
.../e-html-editor-selection-dom-functions.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index a6da801..6c2533e 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -2050,19 +2050,14 @@ wrap_lines (WebKitDOMDocument *document,
gboolean has_selection;
gint len, ii, br_count;
gulong length_left;
- glong paragraph_char_count;
gchar *text_content;
has_selection = !dom_selection_is_collapsed (document);
if (has_selection) {
- const gchar *selection_content;
WebKitDOMNodeList *wrap_br;
WebKitDOMRange *range;
- selection_content = e_html_editor_web_extension_get_selection_text (extension);
- paragraph_char_count = g_utf8_strlen (selection_content, -1);
-
range = dom_get_current_range (document);
fragment = webkit_dom_range_clone_contents (range, NULL);
g_object_unref (range);
@@ -2091,11 +2086,6 @@ wrap_lines (WebKitDOMDocument *document,
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]