Bug 439373 Remove front-end users of nsIMsgRDFDatasource, r=mkmelin

git-svn-id: svn://10.0.0.236/trunk@252424 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jminta%gmail.com 2008-06-18 02:49:32 +00:00
parent 9108c47b4d
commit 548b9cfcfa
3 changed files with 0 additions and 27 deletions

View File

@ -1160,7 +1160,6 @@ var gSearchSession;
var nsIMsgFolder = Components.interfaces.nsIMsgFolder;
var nsIMsgWindow = Components.interfaces.nsIMsgWindow;
var nsIMsgRDFDataSource = Components.interfaces.nsIMsgRDFDataSource;
var nsMsgSearchScope = Components.interfaces.nsMsgSearchScope;
var gFolderDatasource;

View File

@ -94,18 +94,6 @@ function OnMailWindowUnload()
mailSession.RemoveMsgWindow(msgWindow);
messenger.setWindow(null, null);
var msgDS;
var viewDataSources = [accountManagerDataSource, folderDataSource,
unreadFolderDataSource, favoriteFoldersDataSource,
recentFoldersDataSource];
for (index in viewDataSources)
{
msgDS = viewDataSources[index].QueryInterface(Components.interfaces.nsIMsgRDFDataSource);
msgDS.window = null;
msgDS = null;
}
msgWindow.closeWindow();
}
@ -186,18 +174,6 @@ function AddDataSources()
{
accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);
folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);
//Add statusFeedback
var msgDS;
var viewDataSources = [accountManagerDataSource, folderDataSource,
unreadFolderDataSource, favoriteFoldersDataSource,
recentFoldersDataSource];
for (index in viewDataSources)
{
msgDS = viewDataSources[index].QueryInterface(Components.interfaces.nsIMsgRDFDataSource);
msgDS.window = msgWindow;
}
}
// We're going to implement our status feedback for the mail window in JS now.

View File

@ -1071,8 +1071,6 @@ function loadFolderViewForTree(aNewFolderView, aFolderTree)
for (index in dataSourcesToAdd)
{
database.AddDataSource(dataSourcesToAdd[index]);
var msgDS = dataSourcesToAdd[index].QueryInterface(Components.interfaces.nsIMsgRDFDataSource);
msgDS.window = msgWindow;
}
aFolderTree.setAttribute('ref', folderViews[aNewFolderView].ref);