Bug 1499821 - Remove unused nsITransferable.isLargeDataSet. r=smaug
authorTom Schuster <evilpies@gmail.com>
Mon, 22 Oct 2018 21:46:38 +0000
changeset 490884 ed140051bbd084272751b203b475e1a712f1c2d1
parent 490883 99748ccfba864bee288669cac6d5fe7fb09c181f
child 490885 480b34db3172d2456b619681d4a05216221066f0
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerssmaug
bugs1499821
milestone65.0a1
Bug 1499821 - Remove unused nsITransferable.isLargeDataSet. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D9440
widget/nsITransferable.idl
widget/nsTransferable.cpp
--- a/widget/nsITransferable.idl
+++ b/widget/nsITransferable.idl
@@ -140,22 +140,16 @@ interface nsITransferable : nsISupports
     *
     * @param  aFlavor (out parameter) the flavor of data that was retrieved
     * @param  aData the data. Some variant of class in nsISupportsPrimitives.idl
     * @param  aDataLen the length of the data
     */
   void getAnyTransferData ( out ACString aFlavor, out nsISupports aData,
                             out unsigned long aDataLen ) ;
 
-  /**
-    * Returns true if the data is large.
-    */
-  boolean isLargeDataSet ( ) ;
-  
-
     ///////////////////////////////
     // Setter part of interface 
     ///////////////////////////////
 
   /**
     * Computes a list of flavors that the transferable can
     * accept into it, either through intrinsic knowledge or input data converters.
     *
--- a/widget/nsTransferable.cpp
+++ b/widget/nsTransferable.cpp
@@ -439,29 +439,16 @@ nsTransferable::RemoveDataFlavor(const c
   size_t idx = GetDataForFlavor(mDataArray, aDataFlavor);
   if (idx != mDataArray.NoIndex) {
     mDataArray.RemoveElementAt(idx);
     return NS_OK;
   }
   return NS_ERROR_FAILURE;
 }
 
-/**
- *
- *
- */
-NS_IMETHODIMP
-nsTransferable::IsLargeDataSet(bool* _retval)
-{
-  MOZ_ASSERT(mInitialized);
-
-  NS_ENSURE_ARG_POINTER(_retval);
-  *_retval = false;
-  return NS_OK;
-}
 
 /**
  *
  *
  */
 NS_IMETHODIMP
 nsTransferable::SetConverter(nsIFormatConverter* aConverter)
 {