[gnote] Remove unused code from NoteBuffer



commit e14ebd6a67a7eeb0c43ce19f0045e3a86b0494ff
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Wed Nov 3 20:29:20 2010 +0200

    Remove unused code from NoteBuffer
    
    Remove some code that has no affect from
    NoteBuffer::change_cursor_depth_directional.

 src/notebuffer.cpp |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/notebuffer.cpp b/src/notebuffer.cpp
index 5a48db5..35728c7 100644
--- a/src/notebuffer.cpp
+++ b/src/notebuffer.cpp
@@ -886,9 +886,6 @@ namespace gnote {
     start.set_line_offset(0);
     DepthNoteTag::Ptr start_depth = find_depth_tag (start);
 
-    bool rtl_depth = start_depth && (start_depth->get_direction() == Pango::DIRECTION_RTL);
-    bool first_char_rtl = (start.get_char() > 0) &&
-      (pango_unichar_direction(start.get_char()) == PANGO_DIRECTION_RTL);
     Gtk::TextIter next = start;
 
     if (start_depth) {
@@ -899,8 +896,6 @@ namespace gnote {
       // and use that to determine what direction we should go
       next.forward_sentence_end ();
       next.backward_sentence_start ();
-      first_char_rtl = ((next.get_char() > 0) &&
-                        (pango_unichar_direction(next.get_char() == Pango::DIRECTION_RTL)));
     }
 
     change_cursor_depth(increase);



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