mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
remove unneded code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21192 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a9235c1d5d
commit
f4cc71b7dd
@ -72,12 +72,6 @@ using support::unlink;
|
||||
namespace Alert = frontend::Alert;
|
||||
|
||||
|
||||
bool checkIfLoaded(FileName const & fn)
|
||||
{
|
||||
return theBufferList().getBuffer(fn.absFilename());
|
||||
}
|
||||
|
||||
|
||||
Buffer * checkAndLoadLyXFile(FileName const & filename)
|
||||
{
|
||||
// File already open?
|
||||
@ -97,7 +91,6 @@ Buffer * checkAndLoadLyXFile(FileName const & filename)
|
||||
if (theBufferList().close(checkBuffer, false))
|
||||
// Load it again.
|
||||
return checkAndLoadLyXFile(filename);
|
||||
else
|
||||
// The file could not be closed.
|
||||
return 0;
|
||||
}
|
||||
|
@ -22,12 +22,6 @@ class Buffer;
|
||||
class DocIterator;
|
||||
class ParIterator;
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if the file is already loaded into a buffer.
|
||||
*/
|
||||
bool checkIfLoaded(support::FileName const & fn);
|
||||
|
||||
/**
|
||||
* Checks and loads a LyX file \param filename.
|
||||
* \retval the newly created \c Buffer pointer if successful or 0.
|
||||
|
Loading…
Reference in New Issue
Block a user