remove unnecessary code from Carbon sheet impl. b=339866 r=mento

This commit is contained in:
joshmoz%gmail.com 2006-06-01 01:48:24 +00:00
Родитель 354997ee7b
Коммит 7d8e35a96b
1 изменённых файлов: 0 добавлений и 4 удалений

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

@ -936,7 +936,6 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
gEventDispatchHandler.DispatchGuiEvent(this, NS_DEACTIVATE);
WindowPtr top = GetWindowTop(parentWindowRef);
piParentWidget = do_QueryInterface(parentWidget);
nsMacWindow* siblingSheetToShow = nsnull;
PRBool parentIsSheet = PR_FALSE;
@ -953,9 +952,6 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
// If there are no sibling sheets, but the parent is a sheet, restore
// it. It wasn't sent any deactivate events when it was hidden, so
// don't call through Show, just let the OS put it back up.
nsCOMPtr<nsIWidget> parentWidget;
nsToolkit::GetTopWidget(sheetParent, getter_AddRefs(parentWidget));
piParentWidget = do_QueryInterface(parentWidget);
::ShowSheetWindow(parentWindowRef, sheetParent);
}
else {