Bug 754384 - nsDragService's mNativeDragTarget is completely unused. r=khuey
authorJignesh Kakadiya <jigneshhk1992@gmail.com>
Sun, 27 May 2012 16:54:46 -0400
changeset 95063 e1a1d40f2246333ba95fc705d938007d00a07b90
parent 95062 01673165f0eef183e8a72ebada6c6caebd32c9f1
child 95064 602c1435026d796555e6307116030a8f8c18ff3b
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerskhuey
bugs754384
milestone15.0a1
Bug 754384 - nsDragService's mNativeDragTarget is completely unused. r=khuey
widget/windows/nsDragService.cpp
widget/windows/nsDragService.h
--- a/widget/windows/nsDragService.cpp
+++ b/widget/windows/nsDragService.cpp
@@ -41,28 +41,27 @@
 #include "nsMathUtils.h"
 
 //-------------------------------------------------------------------------
 //
 // DragService constructor
 //
 //-------------------------------------------------------------------------
 nsDragService::nsDragService()
-  : mNativeDragTarget(nsnull), mDataObject(nsnull), mSentLocalDropEvent(false)
+  : mDataObject(nsnull), mSentLocalDropEvent(false)
 {
 }
 
 //-------------------------------------------------------------------------
 //
 // DragService destructor
 //
 //-------------------------------------------------------------------------
 nsDragService::~nsDragService()
 {
-  NS_IF_RELEASE(mNativeDragTarget);
   NS_IF_RELEASE(mDataObject);
 }
 
 bool
 nsDragService::CreateDragImage(nsIDOMNode *aDOMNode,
                                nsIScriptableRegion *aRegion,
                                SHDRAGIMAGE *psdi)
 {
--- a/widget/windows/nsDragService.h
+++ b/widget/windows/nsDragService.h
@@ -53,14 +53,13 @@ protected:
   // collections
   bool IsCollectionObject(IDataObject* inDataObj);
 
   // Create a bitmap for drag operations
   bool CreateDragImage(nsIDOMNode *aDOMNode,
                          nsIScriptableRegion *aRegion,
                          SHDRAGIMAGE *psdi);
 
-  nsNativeDragTarget * mNativeDragTarget;
   IDataObject * mDataObject;
   bool mSentLocalDropEvent;
 };
 
 #endif // nsDragService_h__