From a1b35b76362189e5a65909a147f9e41a6d3f6a14 Mon Sep 17 00:00:00 2001 From: macdonst Date: Wed, 6 Oct 2010 00:22:43 +0800 Subject: [PATCH] Remove logging --- .../src/com/phonegap/ContactAccessorSdk5.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/framework/src/com/phonegap/ContactAccessorSdk5.java b/framework/src/com/phonegap/ContactAccessorSdk5.java index fa2047ad..e02b0795 100644 --- a/framework/src/com/phonegap/ContactAccessorSdk5.java +++ b/framework/src/com/phonegap/ContactAccessorSdk5.java @@ -114,10 +114,6 @@ public class ContactAccessorSdk5 extends ContactAccessor { @Override public JSONArray search(JSONArray filter, JSONObject options) { - long totalEnd; - long totalStart = System.currentTimeMillis(); - long start = System.currentTimeMillis(); - long stop; String searchTerm = ""; int limit = Integer.MAX_VALUE; boolean multiple = true; @@ -136,19 +132,12 @@ public class ContactAccessorSdk5 extends ContactAccessor { } catch (JSONException e) { Log.e(LOG_TAG, e.getMessage(), e); } - stop = System.currentTimeMillis(); - Log.d(LOG_TAG, "Parsing parameters took = " + (stop-start)); - start = System.currentTimeMillis(); // Get a cursor by creating the query. ContentResolver cr = mApp.getContentResolver(); Set contactIds = buildSetOfContactIds(filter, searchTerm); - stop = System.currentTimeMillis(); - Log.d(LOG_TAG, "Building contact ID's took = " + (stop-start)); - start = System.currentTimeMillis(); - Iterator it = contactIds.iterator(); JSONArray contacts = new JSONArray(); @@ -182,10 +171,6 @@ public class ContactAccessorSdk5 extends ContactAccessor { contacts.put(contact); pos++; } - stop = System.currentTimeMillis(); - totalEnd = System.currentTimeMillis(); - Log.d(LOG_TAG, "Populating contact Array took = " + (stop - start)); - Log.d(LOG_TAG, "Total search took = " + (totalEnd - totalStart)); return contacts; }