From abf01f2000ec0ab9889e8b05445f825ca8c41a3a Mon Sep 17 00:00:00 2001 From: Igor Bukanov Date: Tue, 10 Apr 2012 11:57:29 +0200 Subject: [PATCH] Bug 743559 - Remove unused JSRuntime::xml_singleton fields. r=:Waldo The patch removes unused anynameObject and functionNamespaceObject fields in JSRuntime. --- js/src/jsapi.cpp | 2 -- js/src/jscntxt.h | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 1b99221b403e..c927e91967bb 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -781,8 +781,6 @@ JSRuntime::JSRuntime() thousandsSeparator(0), decimalSeparator(0), numGrouping(0), - anynameObject(NULL), - functionNamespaceObject(NULL), waiveGCQuota(false), dtoaState(NULL), pendingProxyOperation(NULL), diff --git a/js/src/jscntxt.h b/js/src/jscntxt.h index edd52741a758..178b73139736 100644 --- a/js/src/jscntxt.h +++ b/js/src/jscntxt.h @@ -566,16 +566,6 @@ struct JSRuntime : js::RuntimeFriendFields const char *decimalSeparator; const char *numGrouping; - /* - * Weak references to lazily-created, well-known XML singletons. - * - * NB: Singleton objects must be carefully disconnected from the rest of - * the object graph usually associated with a JSContext's global object, - * including the set of standard class objects. See jsxml.c for details. - */ - JSObject *anynameObject; - JSObject *functionNamespaceObject; - /* * Flag indicating that we are waiving any soft limits on the GC heap * because we want allocations to be infallible (except when we hit OOM).