BUG#: 8129
authorkumpf <kumpf>
Fri, 14 Nov 2008 00:48:36 +0000 (00:48 +0000)
committerkumpf <kumpf>
Fri, 14 Nov 2008 00:48:36 +0000 (00:48 +0000)
TITLE: Unused function definitions
DESCRIPTION: Remove functions that are not called.

src/Pegasus/Repository/FileBasedStore.cpp
src/Pegasus/WsmServer/tests/WsmWriter/WsmWriter.cpp

index 3c54c5aabe0c7622ac578b0a6a15e4deeeec0f0a..7005e5db6549a554347c38a911174a558a7aaa01 100644 (file)
@@ -625,17 +625,6 @@ FileBasedStore::~FileBasedStore()
 //
 ////////////////////////////////////////////////////////////////////////////////
 
-static Boolean _containsNoCase(const Array<String>& array, const String& str)
-{
-    for (Uint32 i = 0; i < array.size(); i++)
-    {
-        if (String::equalNoCase(array[i], str))
-            return true;
-    }
-
-    return false;
-}
-
 void FileBasedStore::_rollbackIncompleteTransactions()
 {
     PEG_METHOD_ENTER(TRC_REPOSITORY,
index 6a88ee1c9915e4646c561109f865cc2d27590b53..5365e126d05b2aeafda4b46ce865c9c931656ec9 100644 (file)
@@ -47,42 +47,11 @@ PEGASUS_USING_PEGASUS;
 PEGASUS_USING_STD;
 
 static Boolean verbose;
-static Boolean _compareInstances(WsmInstance& inst1, WsmInstance& inst2);
-static Boolean _compareEPRs(
-    WsmEndpointReference& epr1, WsmEndpointReference& epr2);
-
-static Boolean _compareSelectors(WsmSelector& sel1, WsmSelector& sel2)
-{
-    if (sel1.type != sel2.type || sel1.name != sel2.name)
-        return false;
-
-    if (sel1.type == WsmSelector::VALUE)
-        return sel1.value == sel2.value;
-    else
-        return _compareEPRs(sel1.epr, sel2.epr);
-}
-
-static Boolean _compareSelectorSets(WsmSelectorSet* sel1, WsmSelectorSet* sel2)
-{
-    if (sel1 == 0 && sel2 == 0)
-        return true;
-
-    if (sel1 == 0 || sel2 == 0)
-        return false;
-
-    if (sel1->selectors.size() != sel2->selectors.size())
-        return false;
 
-    for (Uint32 i = 0; i < sel1->selectors.size(); i++)
-    {
-        if (!_compareSelectors(sel1->selectors[i], sel2->selectors[i]))
-            return false;
-    }
-
-    return true;
-}
+static Boolean _compareInstances(WsmInstance& inst1, WsmInstance& inst2);
 
-static Boolean _compareEPRs(WsmEndpointReference& epr1, 
+static Boolean _compareEPRs(
+    WsmEndpointReference& epr1, 
     WsmEndpointReference& epr2)
 {
     return epr1 == epr2;