mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 22:41:09 +00:00
Get rid of mostly unused methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33223 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
11474f6b89
commit
d9f22c0233
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user