Bug 1069110 - Fix -Wunused-const-variable warnings in content/xul. r=bz
authorChris Peterson <cpeterson@mozilla.com>
Wed, 17 Sep 2014 20:36:26 -0700
changeset 206493 507bdbd98fae3ef5e98b5224f86aaa4e5a5e7391
parent 206374 c885916823daea6e3070d5f5425b5dd2de111547
child 206494 73272a5342976fc555bd947849e81f9c4c5aa457
push id27529
push userryanvm@gmail.com
push dateMon, 22 Sep 2014 19:49:52 +0000
treeherdermozilla-central@f4037194394e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1069110
milestone35.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 1069110 - Fix -Wunused-const-variable warnings in content/xul. r=bz
content/xul/document/src/XULDocument.cpp
--- a/content/xul/document/src/XULDocument.cpp
+++ b/content/xul/document/src/XULDocument.cpp
@@ -7,28 +7,27 @@
 /*
 
   An implementation for the XUL document. This implementation serves
   as the basis for generating an NGLayout content model.
 
   Notes
   -----
 
-  1. We do some monkey business in the document observer methods to`
+  1. We do some monkey business in the document observer methods to
      keep the element map in sync for HTML elements. Why don't we just
      do it for _all_ elements? Well, in the case of XUL elements,
      which may be lazily created during frame construction, the
      document observer methods will never be called because we'll be
      adding the XUL nodes into the content model "quietly".
 
 */
 
 #include "mozilla/ArrayUtils.h"
 
-// Note the ALPHABETICAL ORDERING
 #include "XULDocument.h"
 
 #include "nsError.h"
 #include "nsIBoxObject.h"
 #include "nsIChromeRegistry.h"
 #include "nsView.h"
 #include "nsViewManager.h"
 #include "nsIContentViewer.h"
@@ -118,19 +117,16 @@ static bool IsOverlayAllowed(nsIURI* aUR
 //
 
 const nsForwardReference::Phase nsForwardReference::kPasses[] = {
     nsForwardReference::eConstruction,
     nsForwardReference::eHookup,
     nsForwardReference::eDone
 };
 
-const uint32_t kMaxAttrNameLength = 512;
-const uint32_t kMaxAttributeLength = 4096;
-
 //----------------------------------------------------------------------
 //
 // Statics
 //
 
 int32_t XULDocument::gRefCnt = 0;
 
 PRLogModuleInfo* XULDocument::gXULLog;