* LyXView:

- setBuffer(): LyXView has no business in setting parent document.
- loadLyXFile():  delete dead code.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19703 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-21 21:41:12 +00:00
parent 612af5c5f0
commit 8db4a8dd46

View File

@ -119,12 +119,6 @@ void LyXView::setBuffer(Buffer * newBuffer)
return;
}
// parentfilename will be used in case when we switch to a child
// document (hence when child_document is true)
string parentfilename;
if (oldBuffer)
parentfilename = oldBuffer->fileName();
WorkArea * wa = workArea(*newBuffer);
if (wa == 0) {
updateLabels(*newBuffer->getMasterBuffer());
@ -143,10 +137,6 @@ void LyXView::setBuffer(Buffer * newBuffer)
Buffer * LyXView::loadLyXFile(FileName const & filename, bool tolastfiles)
{
busy(true);
string parentfilename;
Buffer * oldBuffer = buffer();
if (oldBuffer)
parentfilename = oldBuffer->fileName();
Buffer * newBuffer = checkAndLoadLyXFile(filename);