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 id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewerssmaug, bsmedberg
bugs609414
milestone2.0b8pre
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]