Skip to content

Commit

Permalink
Bug 1322980 - FileList::FromSupports is not used, r=qdot
Browse files Browse the repository at this point in the history
  • Loading branch information
bakulf committed Dec 13, 2016
1 parent e1fcb91 commit 19c6858
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions dom/file/FileList.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,6 @@ class FileList final : public nsIDOMFileList,
return mFiles.Clear();
}

static FileList* FromSupports(nsISupports* aSupports)
{
#ifdef DEBUG
{
nsCOMPtr<nsIDOMFileList> list_qi = do_QueryInterface(aSupports);

// If this assertion fires the QI implementation for the object in
// question doesn't use the nsIDOMFileList pointer as the nsISupports
// pointer. That must be fixed, or we'll crash...
NS_ASSERTION(list_qi == static_cast<nsIDOMFileList*>(aSupports),
"Uh, fix QI!");
}
#endif

return static_cast<FileList*>(aSupports);
}

File* Item(uint32_t aIndex) const;

File* IndexedGetter(uint32_t aIndex, bool& aFound) const;
Expand Down

0 comments on commit 19c6858

Please sign in to comment.