From afedd3f559a62782dbad72c00efd63c188a93ccf Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Wed, 3 May 2000 23:42:25 +0000 Subject: [PATCH] Fix warnings --- editor/base/nsEditorEventListeners.cpp | 7 +------ editor/libeditor/text/nsEditorEventListeners.cpp | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/editor/base/nsEditorEventListeners.cpp b/editor/base/nsEditorEventListeners.cpp index f5189b86a41b..349082732939 100644 --- a/editor/base/nsEditorEventListeners.cpp +++ b/editor/base/nsEditorEventListeners.cpp @@ -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 htmlEditor = do_QueryInterface(mEditor); if ( htmlEditor ) { diff --git a/editor/libeditor/text/nsEditorEventListeners.cpp b/editor/libeditor/text/nsEditorEventListeners.cpp index f5189b86a41b..349082732939 100644 --- a/editor/libeditor/text/nsEditorEventListeners.cpp +++ b/editor/libeditor/text/nsEditorEventListeners.cpp @@ -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 htmlEditor = do_QueryInterface(mEditor); if ( htmlEditor ) {