Remove unused code
authorWonkyu Kwon <wonkyu.kwon@samsung.com>
Wed, 24 Jul 2013 08:34:05 +0000 (17:34 +0900)
committerWonkyu Kwon <wonkyu.kwon@samsung.com>
Wed, 24 Jul 2013 08:56:39 +0000 (17:56 +0900)
Change-Id: If662e14618f5297b7b99a748951de169d2a9058c

client/SEService.cpp
common/AccessCondition.cpp
common/AccessControlList.cpp
common/GPARAACL.cpp
common/GPARFACL.cpp
common/include/AccessCondition.h
common/include/AccessControlList.h
server/ServerResource.cpp
server/ServerSEService.cpp

index c54dd4c4f5a9e8ab377805f20f9df243157e7d37..b97d9b9982a4d5e7291d832d58a0467ae05fb9e0 100644 (file)
@@ -449,8 +449,6 @@ namespace smartcard_service_api
                count = g_variant_iter_n_children(iter);
                while (g_variant_iter_loop(iter, "(us)", &handle, &name) == true)
                {
-                       SECURE_LOGD("Reader : name [%s], handle [%08x]", name, handle);
-
                        /* add readers */
                        reader = new Reader((void *)this->handle, name, GUINT_TO_POINTER(handle));
                        if (reader == NULL)
index 5fd66eaed3f23c894d015307c24fb106300771b7..10593d5367121b2ae8b832ce9b094e70d735aaac 100644 (file)
@@ -69,27 +69,6 @@ namespace smartcard_service_api
                return result;
        }
 
-       void AccessRule::printAccessRules() const
-       {
-               if (listFilters.size() > 0)
-               {
-                       vector<pair<ByteArray, ByteArray> >::const_iterator item;
-
-                       _DBG("         +---- Granted APDUs");
-
-                       for (item = listFilters.begin(); item != listFilters.end(); item++)
-                       {
-                               _DBG("         +----- APDU : %s, Mask : %s", item->first.toString().c_str(), item->second.toString().c_str());
-                       }
-               }
-               else
-               {
-                       _DBG("         +---- APDU Access ALLOW : %s", apduRule ? "ALWAYS" : "NEVER");
-               }
-
-               _DBG("         +---- NFC  Access ALLOW : %s", nfcRule ? "ALWAYS" : "NEVER");
-       }
-
        bool AccessRule::isAuthorizedNFCAccess(void) const
        {
                return nfcRule;
@@ -142,28 +121,6 @@ namespace smartcard_service_api
                return result;
        }
 
-       void AccessCondition::printAccessConditions() const
-       {
-               _DBG("   +-- Access Condition");
-
-               if (mapRules.size() > 0)
-               {
-                       map<ByteArray, AccessRule>::const_iterator item;
-
-                       for (item = mapRules.begin(); item != mapRules.end(); item++)
-                       {
-                               ByteArray temp = item->first;
-
-                               _DBG("   +--- hash : %s", (temp == AccessControlList::ALL_DEVICE_APPS) ? "All device applications" : temp.toString().c_str());
-                               item->second.printAccessRules();
-                       }
-               }
-               else
-               {
-                       _DBG("   +--- permission : %s", permission ? "granted all" : "denied all");
-               }
-       }
-
        void AccessCondition::setAPDUAccessRule(const ByteArray &certHash,
                bool rule)
        {
index 02333607e4e9b0fdd5020cff95c6e7071e1585c4..2122eed9143c813fec8381e3e10a970db67a2e16 100644 (file)
@@ -221,22 +221,4 @@ END :
 END :
                return result;
        }
-
-       void AccessControlList::printAccessControlList() const
-       {
-               ByteArray temp;
-               map<ByteArray, AccessCondition>::const_iterator iterMap;
-
-               _DBG("========================== Access Control Rules ============================");
-               for (iterMap = mapConditions.begin(); iterMap != mapConditions.end(); iterMap++)
-               {
-                       temp = iterMap->first;
-
-                       _DBG("+ aid : %s", (temp == DEFAULT_SE_APP) ? "Default Application" : (temp == ALL_SE_APPS) ? "All SE Applications" : temp.toString().c_str());
-
-                       iterMap->second.printAccessConditions();
-               }
-               _DBG("============================================================================");
-       }
-
 } /* namespace smartcard_service_api */
index 95a9f6523a5e09bbf88038b667cc671bfb01e34f..31c082def38b05a7b3d9d0b2eb876cf29306c358 100644 (file)
@@ -292,8 +292,6 @@ namespace smartcard_service_api
                        {
                                _INFO("access rules are not changed. skip update");
                        }
-
-                       printAccessControlList();
                } else {
                        _ERR("transmitSync failed, %x", result);
                }
index 71cb37ab342205f5f6fa4a17b66d38d6f1a1237d..a136c83b6c5382e1aaa45d32d5ecad5ea947688b 100644 (file)
@@ -77,7 +77,6 @@ namespace smartcard_service_api
                                        result = loadAccessControl(channel, dodf);
                                        if (result == SCARD_ERROR_OK)
                                        {
-                                               printAccessControlList();
                                        }
                                        else
                                        {
index ca1f4afe768048690640433177116525ed4e1368..787bdd0dd82b30203b3555324bff34179140802e 100644 (file)
@@ -37,8 +37,6 @@ namespace smartcard_service_api
                bool nfcRule;
                vector<pair<ByteArray, ByteArray> > listFilters;
 
-               void printAccessRules() const;
-
        public :
                AccessRule() : apduRule(true), nfcRule(true) {}
 
@@ -65,8 +63,6 @@ namespace smartcard_service_api
                ByteArray aid;
                map<ByteArray, AccessRule> mapRules;
 
-               void printAccessConditions() const;
-
        public :
                AccessCondition() : permission(false) {}
 
@@ -91,7 +87,6 @@ namespace smartcard_service_api
                AccessRule *getAccessRule(const ByteArray &certHash);
                const AccessRule *getAccessRule(const ByteArray &certHash) const;
 
-
                friend class AccessControlList;
        };
 
index f87e30999b4a5bb146ff0cce0a2f2330ae4b4af3..df98c75af21fa9d4d7375c634f903948b7fcd3f6 100644 (file)
@@ -42,8 +42,6 @@ namespace smartcard_service_api
                        const ByteArray &hash) const;
                AccessCondition &getAccessCondition(const ByteArray &aid);
 
-               void printAccessControlList() const;
-
        public:
                static ByteArray ALL_SE_APPS;
                static ByteArray DEFAULT_SE_APP;
index 1f093a098bf44a86970cf66433340ca5c2a3edd0..63c7d2f6a80c18584c579313498d4ff5a05b91e9 100644 (file)
@@ -1202,8 +1202,6 @@ namespace smartcard_service_api
                                                snprintf(fullPath, sizeof(fullPath),
                                                        "%s/%s", OMAPI_SE_PATH, entry->d_name);
 
-                                               SCARD_DEBUG("se name [%s]", fullPath);
-
                                                result = appendSELibrary(fullPath);
                                        }
                                }
index dc878e9281bd18b7a7ed6fb1a72528f4007195db..cc4fc5cbf0a8533fb17611f424b5cefcd1dddf66 100644 (file)
@@ -158,8 +158,6 @@ namespace smartcard_service_api
 
                                        snprintf(fullPath, sizeof(fullPath), "%s/%s", OMAPI_SE_PATH, entry->d_name);
 
-                                       SCARD_DEBUG("se name [%s]", fullPath);
-
                                        result = appendSELibrary(fullPath);
                                }
                        }