Bug 460310 - Remove Dead Code in nsWidgetSupport.cpp/h; r+sr=roc

This commit is contained in:
Jonathan Steele 2008-10-28 04:16:13 +01:00
parent 6be9fe2f63
commit 6539dc09d5
2 changed files with 5 additions and 23 deletions

View File

@ -39,15 +39,7 @@
#include "nsRect.h"
#include "nsIWidget.h"
#ifdef XP_MAC
#define WIDGET_SUPPORT_EXPORT(returnType) \
PR_PUBLIC_API(returnType)
#else
#define WIDGET_SUPPORT_EXPORT(returnType) \
returnType
#endif
WIDGET_SUPPORT_EXPORT(nsresult)
nsresult
NS_ShowWidget(nsISupports* aWidget, PRBool aShow)
{
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
@ -58,7 +50,7 @@ NS_ShowWidget(nsISupports* aWidget, PRBool aShow)
return NS_OK;
}
WIDGET_SUPPORT_EXPORT(nsresult)
nsresult
NS_MoveWidget(nsISupports* aWidget, PRUint32 aX, PRUint32 aY)
{
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
@ -69,7 +61,7 @@ NS_MoveWidget(nsISupports* aWidget, PRUint32 aX, PRUint32 aY)
return NS_OK;
}
WIDGET_SUPPORT_EXPORT(nsresult)
nsresult
NS_EnableWidget(nsISupports* aWidget, PRBool aEnable)
{
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
@ -80,7 +72,7 @@ NS_EnableWidget(nsISupports* aWidget, PRBool aEnable)
return NS_OK;
}
WIDGET_SUPPORT_EXPORT(nsresult)
nsresult
NS_SetFocusToWidget(nsISupports* aWidget)
{
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
@ -91,7 +83,7 @@ NS_SetFocusToWidget(nsISupports* aWidget)
return NS_OK;
}
WIDGET_SUPPORT_EXPORT(nsresult)
nsresult
NS_GetWidgetNativeData(nsISupports* aWidget, void** aNativeData)
{
void *result = nsnull;

View File

@ -51,16 +51,6 @@ class nsIToolkit;
class nsIWidget;
class nsITooltipWidget;
#if (defined(XP_MAC) || defined(XP_MACOSX)) && !defined(MOZ_WIDGET_COCOA)
// A top-level widget stores a reference to itself as a window property
// with the following creator and tag. These constants are used by embedding
// code in addition to widget code.
enum {
kTopLevelWidgetPropertyCreator = 'MOSS',
kTopLevelWidgetRefPropertyTag = 'GEKO'
};
#endif
extern nsresult
NS_ShowWidget(nsISupports* aWidget, PRBool aShow);