Bug 1222149 - delete unused fields from AsyncEncodeAndWriteIcon; r=roc

clang-cl says these are unused, so let's delete them.
This commit is contained in:
Nathan Froyd 2015-11-05 14:19:20 -05:00
parent 8401127264
commit 3468dcab7f
2 changed files with 1 additions and 7 deletions

View File

@ -1217,11 +1217,9 @@ AsyncFaviconDataReady::OnComplete(nsIURI *aFaviconURI,
return NS_ERROR_OUT_OF_MEMORY;
}
int32_t stride = 4 * size.width;
int32_t dataLength = stride * size.height;
// AsyncEncodeAndWriteIcon takes ownership of the heap allocated buffer
nsCOMPtr<nsIRunnable> event = new AsyncEncodeAndWriteIcon(path, Move(data),
dataLength,
stride,
size.width,
size.height,
@ -1235,7 +1233,6 @@ AsyncFaviconDataReady::OnComplete(nsIURI *aFaviconURI,
// Warning: AsyncEncodeAndWriteIcon assumes ownership of the aData buffer passed in
AsyncEncodeAndWriteIcon::AsyncEncodeAndWriteIcon(const nsAString &aIconPath,
UniquePtr<uint8_t[]> aBuffer,
uint32_t aBufferLength,
uint32_t aStride,
uint32_t aWidth,
uint32_t aHeight,
@ -1243,7 +1240,6 @@ AsyncEncodeAndWriteIcon::AsyncEncodeAndWriteIcon(const nsAString &aIconPath,
mURLShortcut(aURLShortcut),
mIconPath(aIconPath),
mBuffer(Move(aBuffer)),
mBufferLength(aBufferLength),
mStride(aStride),
mWidth(aWidth),
mHeight(aHeight)

View File

@ -460,7 +460,7 @@ public:
// Warning: AsyncEncodeAndWriteIcon assumes ownership of the aData buffer passed in
AsyncEncodeAndWriteIcon(const nsAString &aIconPath,
UniquePtr<uint8_t[]> aData, uint32_t aDataLen,
UniquePtr<uint8_t[]> aData,
uint32_t aStride, uint32_t aWidth, uint32_t aHeight,
const bool aURLShortcut);
@ -469,8 +469,6 @@ private:
nsAutoString mIconPath;
UniquePtr<uint8_t[]> mBuffer;
HMODULE sDwmDLL;
uint32_t mBufferLength;
uint32_t mStride;
uint32_t mWidth;
uint32_t mHeight;