Removing logging messages

This commit is contained in:
macdonst 2010-10-01 11:28:31 +08:00
parent 6071b9c75a
commit 9671083bed
3 changed files with 6 additions and 14 deletions

View File

@ -723,7 +723,7 @@ Accelerometer.prototype.watchAcceleration = function(successCallback, errorCallb
Accelerometer.prototype.clearWatch = function(id) { Accelerometer.prototype.clearWatch = function(id) {
// Stop javascript timer & remove from timer list // Stop javascript timer & remove from timer list
if (id && navigator.accelerometer.timers[id]) { if (id && navigator.accelerometer.timers[id] != undefined) {
clearInterval(navigator.accelerometer.timers[id]); clearInterval(navigator.accelerometer.timers[id]);
delete navigator.accelerometer.timers[id]; delete navigator.accelerometer.timers[id];
} }

View File

@ -369,12 +369,9 @@ public class ContactAccessorSdk3_4 extends ContactAccessor {
@Override @Override
public boolean remove(String id) { public boolean remove(String id) {
ContentResolver cr = mApp.getContentResolver(); int result = mApp.getContentResolver().delete(People.CONTENT_URI,
"people._id = ?",
int result = cr.delete(People.CONTENT_URI, "people._id = ?", new String[] {id}); new String[] {id});
Log.d(LOG_TAG, "Content URI = " + People.CONTENT_URI);
Log.d(LOG_TAG, "Where = " + "people._id = ?");
Log.d(LOG_TAG, "Number of rows deleted = " + result);
return (result > 0) ? true : false; return (result > 0) ? true : false;
} }

View File

@ -558,14 +558,9 @@ public class ContactAccessorSdk5 extends ContactAccessor {
@Override @Override
public boolean remove(String id) { public boolean remove(String id) {
ContentResolver cr = mApp.getContentResolver(); int result = mApp.getContentResolver().delete(ContactsContract.Data.CONTENT_URI,
int result = cr.delete(ContactsContract.Data.CONTENT_URI,
ContactsContract.Data.CONTACT_ID + " = ?", ContactsContract.Data.CONTACT_ID + " = ?",
new String[] {id}); new String[] {id});
Log.d(LOG_TAG, "Content URI = " + ContactsContract.Data.CONTENT_URI);
Log.d(LOG_TAG, "Where = " + ContactsContract.Data.CONTACT_ID + " = ?");
Log.d(LOG_TAG, "Number of rows deleted = " + result);
return (result > 0) ? true : false; return (result > 0) ? true : false;
} }
} }