From: Vincent van Ravesteijn Date: Thu, 27 Oct 2011 12:54:14 +0000 (+0000) Subject: Remove unused functions. X-Git-Tag: 2.1.0beta1~2463 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b787d0090b63c74baf05c83f5d7447e65bc17b20;p=features.git Remove unused functions. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40034 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index b25406eb31..a946af3368 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -3396,60 +3396,6 @@ QString GuiPreferences::browse(QString const & file, } -// We support less paper sizes than the document dialog -// Therefore this adjustment is needed. -PAPER_SIZE GuiPreferences::toPaperSize(int i) const -{ - switch (i) { - case 0: - return PAPER_DEFAULT; - case 1: - return PAPER_USLETTER; - case 2: - return PAPER_USLEGAL; - case 3: - return PAPER_USEXECUTIVE; - case 4: - return PAPER_A3; - case 5: - return PAPER_A4; - case 6: - return PAPER_A5; - case 7: - return PAPER_B5; - default: - // should not happen - return PAPER_DEFAULT; - } -} - - -int GuiPreferences::fromPaperSize(PAPER_SIZE papersize) const -{ - switch (papersize) { - case PAPER_DEFAULT: - return 0; - case PAPER_USLETTER: - return 1; - case PAPER_USLEGAL: - return 2; - case PAPER_USEXECUTIVE: - return 3; - case PAPER_A3: - return 4; - case PAPER_A4: - return 5; - case PAPER_A5: - return 6; - case PAPER_B5: - return 7; - default: - // should not happen - return 0; - } -} - - Dialog * createGuiPreferences(GuiView & lv) { return new GuiPreferences(lv); } diff --git a/src/frontends/qt4/GuiPrefs.h b/src/frontends/qt4/GuiPrefs.h index 571cb9c76d..c1b8ec286d 100644 --- a/src/frontends/qt4/GuiPrefs.h +++ b/src/frontends/qt4/GuiPrefs.h @@ -103,11 +103,6 @@ public: /// update the screen fonts after change void updateScreenFonts(); - /// adjust the prefs paper sizes - PAPER_SIZE toPaperSize(int i) const; - /// adjust the prefs paper sizes - int fromPaperSize(PAPER_SIZE papersize) const; - LyXRC & rc() { return rc_; } Converters & converters() { return converters_; } Formats & formats() { return formats_; }