]> git.lyx.org Git - features.git/commitdiff
Get rid of mostly unused methods.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 25 Jan 2010 14:13:04 +0000 (14:13 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 25 Jan 2010 14:13:04 +0000 (14:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33223 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp
src/Buffer.h

index 865f468fe7d19288bbaa742154ae5a94744b8ca1..c3fe5e2b32d7122f78d9341f11b162b117fff8d8 100644 (file)
@@ -2214,12 +2214,6 @@ bool Buffer::isClean() const
 }
 
 
-bool Buffer::isBakClean() const
-{
-       return d->bak_clean;
-}
-
-
 bool Buffer::isExternallyModified(CheckMethod method) const
 {
        LASSERT(d->filename.exists(), /**/);
@@ -2255,12 +2249,6 @@ void Buffer::markClean() const
 }
 
 
-void Buffer::markBakClean() const
-{
-       d->bak_clean = true;
-}
-
-
 void Buffer::setUnnamed(bool flag)
 {
        d->unnamed = flag;
@@ -3097,7 +3085,7 @@ void Buffer::moveAutosaveFile(support::FileName const & oldauto) const
 // Perfect target for a thread...
 void Buffer::autoSave() const
 {
-       if (isBakClean() || isReadonly()) {
+       if (d->bak_clean || isReadonly()) {
                // We don't save now, but we'll try again later
                resetAutosaveTimers();
                return;
@@ -3108,7 +3096,8 @@ void Buffer::autoSave() const
        AutoSaveBuffer autosave(*this, getAutosaveFilename());
        autosave.start();
 
-       markBakClean();
+       d->bak_clean = true;
+
        resetAutosaveTimers();
 }
 
index 460bd06860e70a4a6a56e238012d4addd3cd7709..3d840a48314ced00d0cc0e87c834299a40d7af47 100644 (file)
@@ -250,8 +250,6 @@ public:
        /// return true if the main lyx file does not need saving
        bool isClean() const;
        ///
-       bool isBakClean() const;
-       ///
        bool isDepClean(std::string const & name) const;
 
        /// whether or not disk file has been externally modified
@@ -263,9 +261,6 @@ public:
        /// mark the main lyx file as not needing saving
        void markClean() const;
 
-       ///
-       void markBakClean() const;
-
        ///
        void markDepClean(std::string const & name);