Fix warnings

This commit is contained in:
akkana%netscape.com 2000-05-03 23:42:25 +00:00
parent c47dbd0bb6
commit afedd3f559
2 changed files with 2 additions and 12 deletions

View File

@ -210,8 +210,6 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
}
if (nsIDOMKeyEvent::DOM_VK_TAB==keyCode)
{
PRUint32 flags=0;
mEditor->GetFlags(&flags);
if ((flags & nsIHTMLEditor::eEditorSingleLineMask))
return NS_OK; // let it be used for focus switching
@ -223,8 +221,6 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
if (nsIDOMKeyEvent::DOM_VK_RETURN==keyCode
|| nsIDOMKeyEvent::DOM_VK_ENTER==keyCode)
{
PRUint32 flags=0;
mEditor->GetFlags(&flags);
if (!(flags & nsIHTMLEditor::eEditorSingleLineMask))
{
//htmlEditor->InsertBreak();
@ -238,7 +234,7 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
}
}
}
if (NS_SUCCEEDED(htmlEditor->EditorKeyPress(keyEvent)))
ScrollSelectionIntoView();
}
@ -814,7 +810,6 @@ nsTextEditorDragListener::DragExit(nsIDOMEvent* aDragEvent)
nsresult
nsTextEditorDragListener::DragDrop(nsIDOMEvent* aMouseEvent)
{
nsresult rv = NS_OK;
nsCOMPtr<nsIHTMLEditor> htmlEditor = do_QueryInterface(mEditor);
if ( htmlEditor )
{

View File

@ -210,8 +210,6 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
}
if (nsIDOMKeyEvent::DOM_VK_TAB==keyCode)
{
PRUint32 flags=0;
mEditor->GetFlags(&flags);
if ((flags & nsIHTMLEditor::eEditorSingleLineMask))
return NS_OK; // let it be used for focus switching
@ -223,8 +221,6 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
if (nsIDOMKeyEvent::DOM_VK_RETURN==keyCode
|| nsIDOMKeyEvent::DOM_VK_ENTER==keyCode)
{
PRUint32 flags=0;
mEditor->GetFlags(&flags);
if (!(flags & nsIHTMLEditor::eEditorSingleLineMask))
{
//htmlEditor->InsertBreak();
@ -238,7 +234,7 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
}
}
}
if (NS_SUCCEEDED(htmlEditor->EditorKeyPress(keyEvent)))
ScrollSelectionIntoView();
}
@ -814,7 +810,6 @@ nsTextEditorDragListener::DragExit(nsIDOMEvent* aDragEvent)
nsresult
nsTextEditorDragListener::DragDrop(nsIDOMEvent* aMouseEvent)
{
nsresult rv = NS_OK;
nsCOMPtr<nsIHTMLEditor> htmlEditor = do_QueryInterface(mEditor);
if ( htmlEditor )
{