diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 28a44f2c4fd3..386294f3b8c3 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -131,7 +131,6 @@ using namespace mozilla; static NS_DEFINE_CID(kLookAndFeelCID, NS_LOOKANDFEEL_CID); -static NS_DEFINE_CID(kWidgetCID, NS_CHILD_CID); // Struct containing cached metrics for box-wrapped frames. struct nsBoxLayoutMetrics diff --git a/layout/xul/base/src/nsBoxFrame.cpp b/layout/xul/base/src/nsBoxFrame.cpp index f4235ca63691..aebcf59cfc6a 100644 --- a/layout/xul/base/src/nsBoxFrame.cpp +++ b/layout/xul/base/src/nsBoxFrame.cpp @@ -101,9 +101,6 @@ #include "nsIDocument.h" #include "nsIURI.h" - -static NS_DEFINE_IID(kWidgetCID, NS_CHILD_CID); - //define DEBUG_REDRAW #define DEBUG_SPRING_SIZE 8 diff --git a/layout/xul/base/src/nsLeafBoxFrame.cpp b/layout/xul/base/src/nsLeafBoxFrame.cpp index c1070f798819..e08d7b38019a 100644 --- a/layout/xul/base/src/nsLeafBoxFrame.cpp +++ b/layout/xul/base/src/nsLeafBoxFrame.cpp @@ -59,8 +59,6 @@ #include "nsHTMLContainerFrame.h" #include "nsDisplayList.h" -static NS_DEFINE_IID(kWidgetCID, NS_CHILD_CID); - // // NS_NewLeafBoxFrame // diff --git a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp index 536e85338e3b..f610dbaa15a8 100644 --- a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp +++ b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp @@ -111,8 +111,6 @@ #include "nsBidiPresUtils.h" #endif -static NS_DEFINE_CID(kWidgetCID, NS_CHILD_CID); - // Enumeration function that cancels all the image requests in our cache static PLDHashOperator CancelImageRequest(const nsAString& aKey, diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index 8a868c55d571..e74a1f67958d 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -1738,32 +1738,6 @@ NS_METHOD nsWindow::GetClientBounds(nsIntRect &aRect) return NS_OK; } -// Get the bounds, but don't take into account the client size -void nsWindow::GetNonClientBounds(nsIntRect &aRect) -{ - if (mWnd) { - RECT r; - VERIFY(::GetWindowRect(mWnd, &r)); - - // assign size - aRect.width = r.right - r.left; - aRect.height = r.bottom - r.top; - - // convert coordinates if parent exists - HWND parent = ::GetParent(mWnd); - if (parent) { - RECT pr; - VERIFY(::GetWindowRect(parent, &pr)); - r.left -= pr.left; - r.top -= pr.top; - } - aRect.x = r.left; - aRect.y = r.top; - } else { - aRect.SetRect(0,0,0,0); - } -} - // Like GetBounds, but don't offset by the parent NS_METHOD nsWindow::GetScreenBounds(nsIntRect &aRect) { diff --git a/widget/src/windows/nsWindow.h b/widget/src/windows/nsWindow.h index 705faecdc26e..6b0113b94e77 100644 --- a/widget/src/windows/nsWindow.h +++ b/widget/src/windows/nsWindow.h @@ -280,7 +280,6 @@ protected: LPARAM lParamToClient(LPARAM lParam); nsWindow* GetParentWindow(PRBool aIncludeOwner); virtual void SubclassWindow(BOOL bState); - void GetNonClientBounds(nsIntRect &aRect); PRBool CanTakeFocus(); #if !defined(WINCE) static void InitTrackPointHack();