From 1e3c5cf01926376c60389ce9e9a3f642d7b836af Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Tue, 8 Sep 2009 09:49:38 +1200 Subject: [PATCH] Bug 514989 - Remove unused OnPaint methods. r=josh --HG-- extra : rebase_source : becb8d97710a1f13f491689e4a9eba6924f19dca --- widget/src/cocoa/nsChildView.h | 2 -- widget/src/cocoa/nsChildView.mm | 7 ------- widget/src/cocoa/nsCocoaWindow.h | 1 - widget/src/cocoa/nsCocoaWindow.mm | 5 ----- 4 files changed, 15 deletions(-) diff --git a/widget/src/cocoa/nsChildView.h b/widget/src/cocoa/nsChildView.h index ab092589c5ee..ad2ade7f481d 100644 --- a/widget/src/cocoa/nsChildView.h +++ b/widget/src/cocoa/nsChildView.h @@ -422,8 +422,6 @@ protected: PRBool ReportMoveEvent(); PRBool ReportSizeEvent(); - virtual PRBool OnPaint(nsPaintEvent & aEvent); - // override to create different kinds of child views. Autoreleases, so // caller must retain. virtual NSView* CreateCocoaView(NSRect inFrame); diff --git a/widget/src/cocoa/nsChildView.mm b/widget/src/cocoa/nsChildView.mm index 83850a98fd0e..4e5d9a8beb4c 100644 --- a/widget/src/cocoa/nsChildView.mm +++ b/widget/src/cocoa/nsChildView.mm @@ -1651,13 +1651,6 @@ inline PRUint16 COLOR8TOCOLOR16(PRUint8 color8) return (color8 << 8) | color8; /* (color8 * 257) == (color8 * 0x0101) */ } -// Dummy impl, meant to be overridden -PRBool -nsChildView::OnPaint(nsPaintEvent &event) -{ - return PR_TRUE; -} - // The OS manages repaints well enough on its own, so we don't have to // flush them out here. In other words, the OS will automatically call // displayIfNeeded at the appropriate times, so we don't need to do it diff --git a/widget/src/cocoa/nsCocoaWindow.h b/widget/src/cocoa/nsCocoaWindow.h index 874b184dd56e..5bc2e32e896f 100644 --- a/widget/src/cocoa/nsCocoaWindow.h +++ b/widget/src/cocoa/nsCocoaWindow.h @@ -219,7 +219,6 @@ public: NS_IMETHOD Resize(PRInt32 aWidth,PRInt32 aHeight, PRBool aRepaint); NS_IMETHOD Resize(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint); NS_IMETHOD GetScreenBounds(nsIntRect &aRect); - virtual PRBool OnPaint(nsPaintEvent &event); void ReportSizeEvent(NSRect *overrideRect = nsnull); NS_IMETHOD SetTitle(const nsAString& aTitle); diff --git a/widget/src/cocoa/nsCocoaWindow.mm b/widget/src/cocoa/nsCocoaWindow.mm index fd107d343a74..5d3db8b8f1b6 100644 --- a/widget/src/cocoa/nsCocoaWindow.mm +++ b/widget/src/cocoa/nsCocoaWindow.mm @@ -1134,11 +1134,6 @@ NS_IMETHODIMP nsCocoaWindow::GetScreenBounds(nsIntRect &aRect) NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT; } -PRBool nsCocoaWindow::OnPaint(nsPaintEvent &event) -{ - return PR_TRUE; // don't dispatch the update event -} - NS_IMETHODIMP nsCocoaWindow::SetTitle(const nsAString& aTitle) { NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;