mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237588 - One of the File::Create methods is not used, r=smaug
This commit is contained in:
parent
f32e96d899
commit
b11daccf30
@ -428,15 +428,6 @@ File::Create(nsISupports* aParent, const nsAString& aName,
|
||||
return file.forget();
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<File>
|
||||
File::Create(nsISupports* aParent, const nsAString& aName,
|
||||
const nsAString& aContentType, uint64_t aLength)
|
||||
{
|
||||
RefPtr<File> file = new File(aParent,
|
||||
new BlobImplBase(aName, aContentType, aLength));
|
||||
return file.forget();
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<File>
|
||||
File::CreateMemoryFile(nsISupports* aParent, void* aMemoryBuffer,
|
||||
uint64_t aLength, const nsAString& aName,
|
||||
|
@ -195,10 +195,6 @@ public:
|
||||
const nsAString& aContentType, uint64_t aLength,
|
||||
int64_t aLastModifiedDate, BlobDirState aDirState);
|
||||
|
||||
static already_AddRefed<File>
|
||||
Create(nsISupports* aParent, const nsAString& aName,
|
||||
const nsAString& aContentType, uint64_t aLength);
|
||||
|
||||
// The returned File takes ownership of aMemoryBuffer. aMemoryBuffer will be
|
||||
// freed by free so it must be allocated by malloc or something
|
||||
// compatible with it.
|
||||
|
Loading…
Reference in New Issue
Block a user