Bug 1499821 - Remove unused nsITransferable.isLargeDataSet. r=smaug
authorTom Schuster <evilpies@gmail.com>
Mon, 22 Oct 2018 21:46:38 +0000
changeset 498980 ed140051bbd084272751b203b475e1a712f1c2d1
parent 498979 99748ccfba864bee288669cac6d5fe7fb09c181f
child 498981 480b34db3172d2456b619681d4a05216221066f0
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1499821
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)
 {