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:
André Pönitz 2007-10-24 23:03:40 +00:00
parent a9235c1d5d
commit f4cc71b7dd
2 changed files with 2 additions and 15 deletions

View File

@ -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;
}

View File

@ -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.