]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
* src/LyXRC.{cpp,h}:
[lyx.git] / src / buffer_funcs.cpp
index 967ccf47a06008bf520376a495b3b603d6ea06e2..c29fe0543906a9275af3aa1a81cb2396c9a243a6 100644 (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,9 +91,8 @@ 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;
+               // The file could not be closed.
+               return 0;
        }
 
        if (filename.isReadable()) {