mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +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;
|
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()) {
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user