removing assertion when aData is null since it will always be null and isn't used (removing small part of akkana's patch for 46643) r=bryner

This commit is contained in:
pavlov%netscape.com 2000-08-18 05:26:05 +00:00
Родитель c23f5f7fb6
Коммит 72fe52e405
1 изменённых файлов: 3 добавлений и 9 удалений

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

@ -984,21 +984,15 @@ void nsClipboard::SelectionClearCB(GtkWidget *aWidget,
g_print(" nsClipboard::SelectionClearCB\n"); g_print(" nsClipboard::SelectionClearCB\n");
#endif /* DEBUG_CLIPBOARD */ #endif /* DEBUG_CLIPBOARD */
if (!aWidget) if (!aWidget) {
{
NS_ASSERTION(PR_FALSE, "Null widget passed to SelectionClearCB)\n"); NS_ASSERTION(PR_FALSE, "Null widget passed to SelectionClearCB)\n");
return; return;
} }
if (!aEvent)
{ if (!aEvent) {
NS_ASSERTION(PR_FALSE, "Null event passed to SelectionClearCB)\n"); NS_ASSERTION(PR_FALSE, "Null event passed to SelectionClearCB)\n");
return; return;
} }
if (!aData)
{
NS_ASSERTION(PR_FALSE, "Null data passed to SelectionClearCB)\n");
return;
}
nsClipboard *cb = (nsClipboard *)gtk_object_get_data(GTK_OBJECT(aWidget), nsClipboard *cb = (nsClipboard *)gtk_object_get_data(GTK_OBJECT(aWidget),
"cb"); "cb");