Bug 1231256 (part 2) - Remove unused BlobDirState parameters from SetLazyData(). r=jld.

This commit is contained in:
Nicholas Nethercote 2015-12-07 14:00:51 -08:00
parent a3075ce1ad
commit bb7e89e37a
3 changed files with 9 additions and 18 deletions

View File

@ -332,8 +332,7 @@ public:
virtual void SetLazyData(const nsAString& aName,
const nsAString& aContentType,
uint64_t aLength,
int64_t aLastModifiedDate,
BlobDirState aDirState) = 0;
int64_t aLastModifiedDate) = 0;
virtual bool IsMemoryFile() const = 0;
@ -498,8 +497,7 @@ public:
virtual void
SetLazyData(const nsAString& aName, const nsAString& aContentType,
uint64_t aLength, int64_t aLastModifiedDate,
BlobDirState aDirState) override
uint64_t aLength, int64_t aLastModifiedDate) override
{
mName = aName;
mContentType = aContentType;

View File

@ -157,8 +157,7 @@ private:
SetLazyData(const nsAString& aName,
const nsAString& aContentType,
uint64_t aLength,
int64_t aLastModifiedDate,
BlobDirState aDirState) override
int64_t aLastModifiedDate) override
{
MOZ_CRASH("This should never be called!");
}

View File

@ -2039,8 +2039,7 @@ public:
SetLazyData(const nsAString& aName,
const nsAString& aContentType,
uint64_t aLength,
int64_t aLastModifiedDate,
BlobDirState aDirState) override;
int64_t aLastModifiedDate) override;
virtual bool
IsMemoryFile() const override;
@ -2782,8 +2781,7 @@ BlobParent::
RemoteBlobImpl::SetLazyData(const nsAString& aName,
const nsAString& aContentType,
uint64_t aLength,
int64_t aLastModifiedDate,
BlobDirState aDirState)
int64_t aLastModifiedDate)
{
MOZ_CRASH("This should never be called!");
}
@ -3487,8 +3485,7 @@ BlobChild::SetMysteryBlobInfo(const nsString& aName,
MOZ_ASSERT(mRemoteBlobImpl);
MOZ_ASSERT(aLastModifiedDate != INT64_MAX);
mBlobImpl->SetLazyData(aName, aContentType, aLength, aLastModifiedDate,
aDirState);
mBlobImpl->SetLazyData(aName, aContentType, aLength, aLastModifiedDate);
FileBlobConstructorParams params(aName,
aContentType,
@ -3509,8 +3506,7 @@ BlobChild::SetMysteryBlobInfo(const nsString& aContentType, uint64_t aLength)
nsString voidString;
voidString.SetIsVoid(true);
mBlobImpl->SetLazyData(voidString, aContentType, aLength, INT64_MAX,
BlobDirState::eUnknownIfDir);
mBlobImpl->SetLazyData(voidString, aContentType, aLength, INT64_MAX);
NormalBlobConstructorParams params(aContentType,
aLength,
@ -4336,8 +4332,7 @@ BlobParent::RecvResolveMystery(const ResolveMysteryParams& aParams)
mBlobImpl->SetLazyData(voidString,
params.contentType(),
params.length(),
INT64_MAX,
BlobDirState::eUnknownIfDir);
INT64_MAX);
return true;
}
@ -4362,8 +4357,7 @@ BlobParent::RecvResolveMystery(const ResolveMysteryParams& aParams)
mBlobImpl->SetLazyData(params.name(),
params.contentType(),
params.length(),
params.modDate(),
BlobDirState(params.dirState()));
params.modDate());
return true;
}