IOT-3160
[iotivity.git] / cloud / resourcedirectory / src / main / java / org / iotivity / cloud / rdserver / db / MongoDB.java
index fc14645..80d2869 100644 (file)
@@ -165,8 +165,6 @@ public class MongoDB {
             return false;
         }
 
-        showRecord(tableName);
-
         return true;
     }
 
@@ -204,8 +202,6 @@ public class MongoDB {
             return false;
         }
 
-        showRecord(tableName);
-
         return true;
     }
 
@@ -235,8 +231,6 @@ public class MongoDB {
             return false;
         }
 
-        showRecord(tableName);
-
         return true;
     }
 
@@ -267,8 +261,6 @@ public class MongoDB {
             return false;
         }
 
-        showRecord(tableName);
-
         return true;
     }
 
@@ -329,25 +321,4 @@ public class MongoDB {
 
         return resourceMap;
     }
-
-    private void showRecord(String tableName) {
-
-        MongoCollection<Document> collection = db.getCollection(tableName);
-        MongoCursor<Document> cursor = collection.find().iterator();
-
-        Log.info("<" + tableName + ">");
-
-        HashMap<String, Object> records = null;
-        int index = 0;
-        while (cursor.hasNext()) {
-
-            Document doc = cursor.next();
-            records = convertDocumentToHashMap(doc);
-
-            Log.info("[" + index + "] " + records.toString());
-            index++;
-        }
-
-        cursor.close();
-    }
 }