Bug 609414 - Remove unused nsHTMLInputElemnet::SetSingleFile. r=smaug a=bsmedberg
authorMounir Lamouri <mounir.lamouri@gmail.com>
Wed, 24 Nov 2010 00:45:02 +0100
changeset 58139 fa6f069c82cbb703f4a7ce260e6a20b3541d5b71
parent 58138 fad69d390b23731a2f05124bf5117e22ee10d18f
child 58140 023f675df2a0736749c35e0ac35f8feed46d76b5
push id17175
push usermlamouri@mozilla.com
push dateWed, 24 Nov 2010 10:15:50 +0000
treeherdermozilla-central@7f5cd850578e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, bsmedberg
bugs609414
milestone2.0b8pre
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 609414 - Remove unused nsHTMLInputElemnet::SetSingleFile. r=smaug a=bsmedberg
content/html/content/src/nsHTMLInputElement.h
--- a/content/html/content/src/nsHTMLInputElement.h
+++ b/content/html/content/src/nsHTMLInputElement.h
@@ -367,23 +367,16 @@ protected:
                             PRBool aUserInput,
                             PRBool aSetValueChanged);
 
   void ClearFiles() {
     nsCOMArray<nsIDOMFile> files;
     SetFiles(files);
   }
 
-  void SetSingleFile(nsIDOMFile* aFile) {
-    nsCOMArray<nsIDOMFile> files;
-    nsCOMPtr<nsIDOMFile> file = aFile;
-    files.AppendObject(file);
-    SetFiles(files);
-  }
-
   nsresult SetIndeterminateInternal(PRBool aValue,
                                     PRBool aShouldInvalidate);
 
   nsresult GetSelectionRange(PRInt32* aSelectionStart, PRInt32* aSelectionEnd);
 
   /**
    * Get the name if it exists and return whether it did exist
    * @param aName the name returned [OUT]