diff --git a/widget/src/windows/nsDragService.cpp b/widget/src/windows/nsDragService.cpp index 582570bcbd56..f154cc099525 100644 --- a/widget/src/windows/nsDragService.cpp +++ b/widget/src/windows/nsDragService.cpp @@ -267,16 +267,6 @@ NS_IMETHODIMP nsDragService::IsDataFlavorSupported(const char *aDataFlavor, PRBo } //------------------------------------------------------------------------- -NS_IMETHODIMP nsDragService::GetCurrentSession (nsIDragSession ** aSession) -{ - if ( !aSession ) - return NS_ERROR_FAILURE; - - *aSession = (nsIDragSession *)this; - NS_ADDREF(*aSession); - return NS_OK; -} - // // IsCollectionObject @@ -304,4 +294,4 @@ nsDragService :: IsCollectionObject ( IDataObject* inDataObj ) return isCollection; -} // IsCollectionObject \ No newline at end of file +} // IsCollectionObject diff --git a/widget/src/windows/nsDragService.h b/widget/src/windows/nsDragService.h index 6b8622ffdd87..6a805edc33c2 100644 --- a/widget/src/windows/nsDragService.h +++ b/widget/src/windows/nsDragService.h @@ -42,7 +42,6 @@ public: // nsIDragService NS_IMETHOD InvokeDragSession (nsIDOMNode *aDOMNode, nsISupportsArray * anArrayTransferables, nsIScriptableRegion * aRegion, PRUint32 aActionType); - NS_IMETHOD GetCurrentSession (nsIDragSession ** aSession); // nsIDragSession NS_IMETHOD GetData (nsITransferable * aTransferable, PRUint32 anItem);