Bug 492393: remove some unneeded code for FolderPaneController.doCommand('button_delete'). r=philor

This commit is contained in:
Magnus Melin 2009-05-12 23:32:31 +03:00
Родитель ca06d50407
Коммит 76411453e5
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -118,13 +118,6 @@ var FolderPaneController =
case "cmd_delete":
case "cmd_shiftDelete":
case "button_delete":
// Even if the folder pane has focus, don't do a folder delete if
// we have a selected message, but delete the message instead.
if (GetNumSelectedMessages() == 0)
gFolderTreeController.deleteFolder();
else
DefaultController.doCommand(command);
break;
case "cmd_deleteFolder":
gFolderTreeController.deleteFolder();
break;