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; namespace Alert = frontend::Alert;
bool checkIfLoaded(FileName const & fn)
{
return theBufferList().getBuffer(fn.absFilename());
}
Buffer * checkAndLoadLyXFile(FileName const & filename) Buffer * checkAndLoadLyXFile(FileName const & filename)
{ {
// File already open? // File already open?
@ -97,9 +91,8 @@ Buffer * checkAndLoadLyXFile(FileName const & filename)
if (theBufferList().close(checkBuffer, false)) if (theBufferList().close(checkBuffer, false))
// Load it again. // Load it again.
return checkAndLoadLyXFile(filename); return checkAndLoadLyXFile(filename);
else // The file could not be closed.
// The file could not be closed. return 0;
return 0;
} }
if (filename.isReadable()) { if (filename.isReadable()) {

View File

@ -22,12 +22,6 @@ class Buffer;
class DocIterator; class DocIterator;
class ParIterator; 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. * Checks and loads a LyX file \param filename.
* \retval the newly created \c Buffer pointer if successful or 0. * \retval the newly created \c Buffer pointer if successful or 0.