From: Abdelrazak Younes Date: Mon, 25 Jan 2010 14:13:04 +0000 (+0000) Subject: Get rid of mostly unused methods. X-Git-Tag: 2.0.0~4227 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d9f22c0233cdfa93602276180ba35b54c895bf1a;p=features.git Get rid of mostly unused methods. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33223 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 865f468fe7..c3fe5e2b32 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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(); } diff --git a/src/Buffer.h b/src/Buffer.h index 460bd06860..3d840a4831 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -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);