]> git.lyx.org Git - features.git/blobdiff - src/LyXView.C
get rid of dead code, some new functions constify variables.
[features.git] / src / LyXView.C
index ecba3b8bb84bb7539a9ee73ea1053b6c4de328b9..92655d1430e8c2d2fc690fefc7d844e638fabfe7 100644 (file)
@@ -40,8 +40,6 @@
 
 using std::endl;
 
-extern FD_form_document * fd_form_document;
-
 extern void AutoSave(BufferView *);
 extern void QuitLyX();
 LyXTextClass::size_type current_layout = 0;
@@ -311,7 +309,6 @@ void LyXView::init()
        // Set the textclass choice
        invalidateLayoutChoice();
        updateLayoutChoice();
-       UpdateDocumentClassChoice();
        updateMenubar();
        
        // Start autosave timer
@@ -365,20 +362,6 @@ void LyXView::updateLayoutChoice()
 }
 
 
-void LyXView::UpdateDocumentClassChoice()
-{
-       // Update the document class display in the document form
-       if (fd_form_document) {
-               fl_clear_choice(fd_form_document->choice_class);
-               for (LyXTextClassList::const_iterator cit = textclasslist.begin();
-                    cit != textclasslist.end(); ++cit) {
-                       fl_addto_choice(fd_form_document->choice_class,
-                                       (*cit).description().c_str());
-               }
-       }
-}
-
-
 #if 0
 // This is necessary, since FL_FREE-Objects doesn't get all keypress events
 // as FL_KEYBOARD events :-(   Matthias 280596