From f2cfca14605d0d417c7edf26b6711c3309fc08e4 Mon Sep 17 00:00:00 2001 From: akwizgran Date: Tue, 20 Mar 2018 11:30:31 +0000 Subject: [PATCH] Remove performance logging. --- .../briar/android/keyagreement/QrCodeDecoder.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/briar-android/src/main/java/org/briarproject/briar/android/keyagreement/QrCodeDecoder.java b/briar-android/src/main/java/org/briarproject/briar/android/keyagreement/QrCodeDecoder.java index cf3834319..ebdad55ae 100644 --- a/briar-android/src/main/java/org/briarproject/briar/android/keyagreement/QrCodeDecoder.java +++ b/briar-android/src/main/java/org/briarproject/briar/android/keyagreement/QrCodeDecoder.java @@ -65,7 +65,6 @@ class QrCodeDecoder implements PreviewConsumer, PreviewCallback { @Override public void onPreviewFrame(byte[] data, Camera camera) { if (camera == this.camera) { - LOG.info("Got preview frame"); try { Size size = camera.getParameters().getPreviewSize(); // The preview should be in NV21 format: width * height bytes of @@ -103,19 +102,12 @@ class QrCodeDecoder implements PreviewConsumer, PreviewCallback { @Override protected Void doInBackground(Void... params) { - long now = System.currentTimeMillis(); BinaryBitmap bitmap = binarize(data, width, height, orientation); - Result result = null; + Result result; try { result = reader.decode(bitmap); - long duration = System.currentTimeMillis() - now; - if (LOG.isLoggable(INFO)) - LOG.info("Decoding barcode took " + duration + " ms"); } catch (ReaderException e) { // No barcode found - long duration = System.currentTimeMillis() - now; - if (LOG.isLoggable(INFO)) - LOG.info("No barcode found after " + duration + " ms"); return null; } catch (RuntimeException e) { LOG.warning("Invalid preview frame");