Bug 880662 - Remove unused variable from YCbCrImageDataDeserializerBase::IsValid(). r=nical
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 07 Jun 2013 15:21:50 -0400
changeset 145905 859ee3960254a5f0fd6206a73172b4bc7cb614fb
parent 145904 5860d85b0006388563f52a188584181fb71b57d3
child 145906 b14bfecb7c34677b9dcfe8f02d6b6bae00dbd71d
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs880662
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 880662 - Remove unused variable from YCbCrImageDataDeserializerBase::IsValid(). r=nical
gfx/layers/YCbCrImageDataSerializer.cpp
--- a/gfx/layers/YCbCrImageDataSerializer.cpp
+++ b/gfx/layers/YCbCrImageDataSerializer.cpp
@@ -45,17 +45,16 @@ static YCbCrBufferInfo* GetYCbCrBufferIn
   return reinterpret_cast<YCbCrBufferInfo*>(aData);
 }
 
 bool YCbCrImageDataDeserializerBase::IsValid()
 {
   if (mData == nullptr) {
     return false;
   }
-  size_t bufferInfoSize = MOZ_ALIGN_WORD(sizeof(YCbCrBufferInfo));
   return true;
 }
 
 uint8_t* YCbCrImageDataDeserializerBase::GetYData()
 {
   YCbCrBufferInfo* info = GetYCbCrBufferInfo(mData);
   return reinterpret_cast<uint8_t*>(info) + info->mYOffset;
 }