Remove unneeded debug log statements.

This commit is contained in:
Bryce Curtis 2010-10-28 16:28:24 -05:00
parent 35b3808701
commit 577284b960
4 changed files with 1 additions and 11 deletions

View File

@ -40,7 +40,6 @@ Accelerometer.ERROR_MSG = ["Not running", "Starting", "", "Failed to start"];
* @param {AccelerationOptions} options The options for getting the accelerometer data such as timeout. (OPTIONAL) * @param {AccelerationOptions} options The options for getting the accelerometer data such as timeout. (OPTIONAL)
*/ */
Accelerometer.prototype.getCurrentAcceleration = function(successCallback, errorCallback, options) { Accelerometer.prototype.getCurrentAcceleration = function(successCallback, errorCallback, options) {
console.log("Accelerometer.getCurrentAcceleration()");
// successCallback required // successCallback required
if (typeof successCallback != "function") { if (typeof successCallback != "function") {

View File

@ -36,7 +36,6 @@ public class FileUtils extends Plugin {
* Constructor. * Constructor.
*/ */
public FileUtils() { public FileUtils() {
System.out.println("FileUtils()");
} }
/** /**
@ -156,7 +155,6 @@ public class FileUtils extends Plugin {
* @throws FileNotFoundException, IOException * @throws FileNotFoundException, IOException
*/ */
public String readAsText(String filename, String encoding) throws FileNotFoundException, IOException { public String readAsText(String filename, String encoding) throws FileNotFoundException, IOException {
System.out.println("FileUtils.readAsText("+filename+", "+encoding+")");
StringBuilder data = new StringBuilder(); StringBuilder data = new StringBuilder();
FileInputStream fis = new FileInputStream(filename); FileInputStream fis = new FileInputStream(filename);
BufferedReader reader = new BufferedReader(new InputStreamReader(fis, encoding), 1024); BufferedReader reader = new BufferedReader(new InputStreamReader(fis, encoding), 1024);

1
framework/src/com/phonegap/HttpHandler.java Normal file → Executable file
View File

@ -62,7 +62,6 @@ public class HttpHandler {
if (numread <= 0) if (numread <= 0)
break; break;
out.write(buff, 0, numread); out.write(buff, 0, numread);
System.out.println("numread" + numread);
i++; i++;
} while (true); } while (true);
out.flush(); out.flush();

View File

@ -37,7 +37,6 @@ public final class PluginManager {
* @param ctx * @param ctx
*/ */
public PluginManager(WebView app, DroidGap ctx) { public PluginManager(WebView app, DroidGap ctx) {
System.out.println("PluginManager()");
this.ctx = ctx; this.ctx = ctx;
this.app = app; this.app = app;
} }
@ -66,7 +65,6 @@ public final class PluginManager {
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public String exec(final String service, final String action, final String callbackId, final String jsonArgs, final boolean async) { public String exec(final String service, final String action, final String callbackId, final String jsonArgs, final boolean async) {
System.out.println("PluginManager.exec("+service+", "+action+", "+callbackId+", "+jsonArgs+", "+async+")");
PluginResult cr = null; PluginResult cr = null;
boolean runAsync = async; boolean runAsync = async;
try { try {
@ -133,9 +131,6 @@ public final class PluginManager {
} }
ctx.sendJavascript(cr.toErrorCallbackString(callbackId)); ctx.sendJavascript(cr.toErrorCallbackString(callbackId));
} }
if (cr != null) {
System.out.println(" -- returning result: "+cr.getJSONString());
}
return ( cr != null ? cr.getJSONString() : "{ status: 0, message: 'all good' }" ); return ( cr != null ? cr.getJSONString() : "{ status: 0, message: 'all good' }" );
} }
@ -197,7 +192,6 @@ public final class PluginManager {
if (this.plugins.containsKey(className)) { if (this.plugins.containsKey(className)) {
return this.getPlugin(className); return this.getPlugin(className);
} }
System.out.println("PluginManager.addPlugin("+className+")");
try { try {
Plugin plugin = (Plugin)clazz.newInstance(); Plugin plugin = (Plugin)clazz.newInstance();
this.plugins.put(className, plugin); this.plugins.put(className, plugin);
@ -233,7 +227,7 @@ public final class PluginManager {
public void addService(String serviceType, String className) { public void addService(String serviceType, String className) {
this.services.put(serviceType, className); this.services.put(serviceType, className);
} }
/** /**
* Called when the system is about to start resuming a previous activity. * Called when the system is about to start resuming a previous activity.
*/ */