]> git.lyx.org Git - features.git/blobdiff - src/lyxfunc.C
removed unused code
[features.git] / src / lyxfunc.C
index 228ad30895ac14e7c02e13e6e04e0736dd30a6c8..c572813b645a03ff646f7e7ad39fdb9c08b5e273 100644 (file)
@@ -1658,11 +1658,7 @@ string LyXFunc::Dispatch(int ac,
        case LFUN_BREAKLINE:
                owner->view()->beforeChange();
                owner->view()->text->InsertChar(LyXParagraph::META_NEWLINE);
-#if 1
                owner->view()->update(1);
-#else
-               owner->view()->smallUpdate(1);
-#endif
                SetUpdateTimer(0.01);
                moveCursorUpdate(false);
                break;
@@ -1704,11 +1700,7 @@ string LyXFunc::Dispatch(int ac,
                        owner->view()->text->Delete();
                        owner->view()->text->sel_cursor = 
                                owner->view()->text->cursor;
-#if 1
                        owner->view()->update(1);
-#else
-                       owner->view()->smallUpdate(1);
-#endif
                        // It is possible to make it a lot faster still
                        // just comment out the lone below...
                        owner->view()->showCursor();
@@ -1751,21 +1743,13 @@ string LyXFunc::Dispatch(int ac,
                                        owner->view()->text->Delete();
                                        owner->view()->text->sel_cursor = 
                                                owner->view()->text->cursor;
-#if 1
                                        owner->view()->update(1);
-#else
-                                       owner->view()->smallUpdate(1);
-#endif
                                }
                        } else {
                                owner->view()->text->Delete();
                                owner->view()->text->sel_cursor = 
                                        owner->view()->text->cursor;
-#if 1
                                owner->view()->update(1);
-#else
-                               owner->view()->smallUpdate(1);
-#endif
                        }
                } else {
                        owner->view()->cut();
@@ -1833,11 +1817,7 @@ string LyXFunc::Dispatch(int ac,
                                owner->view()->text->Backspace();
                                owner->view()->text->sel_cursor = 
                                        owner->view()->text->cursor;
-#if 1
                                owner->view()->update(1);
-#else
-                               owner->view()->smallUpdate(1);
-#endif
                                // It is possible to make it a lot faster still
                                // just comment out the lone below...
                                owner->view()->showCursor();
@@ -1875,11 +1855,7 @@ string LyXFunc::Dispatch(int ac,
                                owner->view()->text->Backspace();
                                owner->view()->text->sel_cursor 
                                        = cursor;
-#if 1
                                owner->view()->update(1);
-#else
-                               owner->view()->smallUpdate (1);
-#endif
                        }
                } else
                        owner->view()->cut();
@@ -1891,11 +1867,7 @@ string LyXFunc::Dispatch(int ac,
        {
                owner->view()->beforeChange();
                owner->view()->text->BreakParagraph(0);
-#if 1
                owner->view()->update(1);
-#else
-               owner->view()->smallUpdate(1);
-#endif
                SetUpdateTimer(0.01);
                owner->view()->text->sel_cursor = 
                        owner->view()->text->cursor;
@@ -1908,11 +1880,7 @@ string LyXFunc::Dispatch(int ac,
        {
                owner->view()->beforeChange();
                owner->view()->text->BreakParagraph(1);
-#if 1
                owner->view()->update(1);
-#else
-               owner->view()->smallUpdate(1);
-#endif
                SetUpdateTimer(0.01);
                owner->view()->text->sel_cursor = 
                        owner->view()->text->cursor;
@@ -1945,11 +1913,7 @@ string LyXFunc::Dispatch(int ac,
                }
                else {
                        owner->view()->text->BreakParagraph(0);
-#if 1
                        owner->view()->update(1);
-#else
-                       owner->view()->smallUpdate(1);
-#endif
                }
                SetUpdateTimer(0.01);
                owner->view()->text->sel_cursor = cursor;
@@ -2009,11 +1973,7 @@ string LyXFunc::Dispatch(int ac,
        case LFUN_QUOTE:
                owner->view()->beforeChange();
                owner->view()->text->InsertChar('\"');  // This " matches the single quote in the code
-#if 1
                owner->view()->update(1);
-#else
-               owner->view()->smallUpdate(1);
-#endif
                SetUpdateTimer();
                 moveCursorUpdate(false);
                break;
@@ -2192,12 +2152,10 @@ string LyXFunc::Dispatch(int ac,
        case LFUN_CIRCLE:
        case LFUN_OGONEK:
        {
-               char c;
+               char c = 0;
                
                if (keyseq.length == -1 && keyseq.getiso() != 0) 
                        c = keyseq.getiso();
-               else
-                       c = 0;
                
                owner->getIntl()->getTrans()->
                        deadkey(c, get_accent(action).accent, 
@@ -2209,11 +2167,8 @@ string LyXFunc::Dispatch(int ac,
                keyseq.length = 0;
                
                // copied verbatim from do_accent_char
-#if 1
                owner->view()->update(1);
-#else
-               owner->view()->smallUpdate(1);
-#endif
+
                SetUpdateTimer();
                owner->view()->text->sel_cursor = 
                        owner->view()->text->cursor;
@@ -2567,11 +2522,7 @@ string LyXFunc::Dispatch(int ac,
                        owner->view()->text->InsertChar(argument[i]);
                        // This needs to be in the loop, or else we
                        // won't break lines correctly. (Asger)
-#if 1
                        owner->view()->update(1);
-#else
-                       owner->view()->smallUpdate(1);
-#endif
                }
                SetUpdateTimer();
                owner->view()->text->sel_cursor = 
@@ -2609,11 +2560,7 @@ string LyXFunc::Dispatch(int ac,
                datetmp_len = (int) strftime(datetmp, 32, arg.c_str(), now_tm);
                for (int i = 0; i < datetmp_len; i++) {
                        owner->view()->text->InsertChar(datetmp[i]);
-#if 1
                        owner->view()->update(1);
-#else
-                       owner->view()->smallUpdate(1);
-#endif
                }
                SetUpdateTimer();
                owner->view()->text->sel_cursor = owner->view()->text->cursor;
@@ -2668,11 +2615,7 @@ string LyXFunc::Dispatch(int ac,
                                        owner->getIntl()->getTrans()->TranslateAndInsert(argument[i], owner->view()->text);
                        }
 
-#if 1
                        owner->view()->update(1);
-#else
-                       owner->view()->smallUpdate(1);
-#endif
                        SetUpdateTimer();
 
                        owner->view()->text->sel_cursor =