Bug 964075: Remove unused const variables from nsComponentManager.cpp, to fix clang warnings. r=froydnj
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 27 Jan 2014 11:46:17 -0800
changeset 181423 849b1268eb86da7949f5bebd2950f20defa14945
parent 181422 1f44e9a52d8e28e1b4e1a4ea2d68917adba1a0b0
child 181424 778b8bd2b5b620d532100308d5c20561fdca982a
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs964075
milestone29.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 964075: Remove unused const variables from nsComponentManager.cpp, to fix clang warnings. r=froydnj
xpcom/components/nsComponentManager.cpp
--- a/xpcom/components/nsComponentManager.cpp
+++ b/xpcom/components/nsComponentManager.cpp
@@ -91,53 +91,25 @@ extern mozilla::Module const *const *con
 #endif
 
 // Bloated registry buffer size to improve startup performance -- needs to
 // be big enough to fit the entire file into memory or it'll thrash.
 // 512K is big enough to allow for some future growth in the registry.
 #define BIG_REGISTRY_BUFLEN   (512*1024)
 
 // Common Key Names
-const char classIDKeyName[]="classID";
-const char classesKeyName[]="contractID";
-const char componentsKeyName[]="components";
 const char xpcomComponentsKeyName[]="software/mozilla/XPCOM/components";
 const char xpcomKeyName[]="software/mozilla/XPCOM";
 
 // Common Value Names
-const char classIDValueName[]="ClassID";
-const char classNameValueName[]="ClassName";
-const char componentCountValueName[]="ComponentsCount";
-const char componentTypeValueName[]="ComponentType";
-const char contractIDValueName[]="ContractID";
 const char fileSizeValueName[]="FileSize";
-const char inprocServerValueName[]="InprocServer";
 const char lastModValueName[]="LastModTimeStamp";
 const char nativeComponentType[]="application/x-mozilla-native";
 const char staticComponentType[]="application/x-mozilla-static";
-const char jarComponentType[]="application/x-mozilla-jarjs";
-const char versionValueName[]="VersionString";
 
-const static char XPCOM_ABSCOMPONENT_PREFIX[] = "abs:";
-const static char XPCOM_RELCOMPONENT_PREFIX[] = "rel:";
-const static char XPCOM_GRECOMPONENT_PREFIX[] = "gre:";
-
-static const char gIDFormat[] =
-  "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}";
-
-
-#define NS_EMPTY_IID                                 \
-{                                                    \
-    0x00000000,                                      \
-    0x0000,                                          \
-    0x0000,                                          \
-    {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} \
-}
-
-NS_DEFINE_CID(kEmptyCID, NS_EMPTY_IID);
 NS_DEFINE_CID(kCategoryManagerCID, NS_CATEGORYMANAGER_CID);
 
 #define UID_STRING_LENGTH 39
 
 nsresult
 nsGetServiceFromCategory::operator()(const nsIID& aIID, void** aInstancePtr) const
 {
     nsresult rv;