Bug 1437655: Remove unreachable "return" statement in nsRuleNode::SetDefaultOnRoot. r?bradwerth draft
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 12 Feb 2018 12:29:18 -0800
changeset 754072 d5524b11b82f51d061063706ee1672f048712a93
parent 754071 4d5c3fa215602dd850bf4a994e19afc2065d74b7
push id98747
push userdholbert@mozilla.com
push dateMon, 12 Feb 2018 20:30:07 +0000
reviewersbradwerth
bugs1437655
milestone60.0a1
Bug 1437655: Remove unreachable "return" statement in nsRuleNode::SetDefaultOnRoot. r?bradwerth MozReview-Commit-ID: FNph063E3HU
layout/style/nsRuleNode.cpp
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -2878,17 +2878,16 @@ nsRuleNode::SetDefaultOnRoot(const nsSty
     default:
       /*
        * unhandled case: nsStyleStructID_Length.
        * last item of nsStyleStructID, to know its length.
        */
       MOZ_ASSERT(false, "unexpected SID");
       return nullptr;
   }
-  return nullptr;
 }
 
 /**
  * Begin an nsRuleNode::Compute*Data function for an inherited struct.
  *
  * @param type_ The nsStyle* type this function computes.
  * @param data_ Variable (declared here) holding the result of this
  *              function.