Bug 689204: Remove unused variable 'readDisplay' from nsHTMLTableElement.cpp. r=bernd
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 27 Sep 2011 13:22:47 -0700
changeset 77730 1dc6d4f550ba702fed7228c523c866ad9c508098
parent 77729 78a47ef40099a331cc87e95680f2782c0459f704
child 77731 0b1934705b4ea5a58611900879a06faddc72e658
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersbernd
bugs689204
milestone10.0a1
Bug 689204: Remove unused variable 'readDisplay' from nsHTMLTableElement.cpp. r=bernd
content/html/content/src/nsHTMLTableElement.cpp
--- a/content/html/content/src/nsHTMLTableElement.cpp
+++ b/content/html/content/src/nsHTMLTableElement.cpp
@@ -1011,17 +1011,16 @@ MapAttributesIntoRule(const nsMappedAttr
       nsCSSValue* cols = aData->ValueForCols();
       if (value->Type() == nsAttrValue::eInteger)
         cols->SetIntValue(value->GetIntegerValue(), eCSSUnit_Integer);
       else // COLS had no value, so it refers to all columns
         cols->SetIntValue(NS_STYLE_TABLE_COLS_ALL, eCSSUnit_Enumerated);
     }
   }
   if (aData->mSIDs & NS_STYLE_INHERIT_BIT(Margin)) {
-    const nsStyleDisplay* readDisplay = aData->mStyleContext->GetStyleDisplay();
     // align; Check for enumerated type (it may be another type if
     // illegal)
     const nsAttrValue* value = aAttributes->GetAttr(nsGkAtoms::align);
 
     if (value && value->Type() == nsAttrValue::eEnum) {
       if (value->GetEnumValue() == NS_STYLE_TEXT_ALIGN_CENTER ||
           value->GetEnumValue() == NS_STYLE_TEXT_ALIGN_MOZ_CENTER) {
         nsCSSValue* marginLeft = aData->ValueForMarginLeftValue();