From f8a105adbf41f837762b819da0987923478c3473 Mon Sep 17 00:00:00 2001 From: Stefan Andritoiu Date: Fri, 6 Nov 2015 13:29:22 +0200 Subject: [PATCH] java: removed commented code in SWIG interface files Signed-off-by: Stefan Andritoiu Signed-off-by: Mihai Tudor Panu --- src/adxl345/javaupm_adxl345.i | 1 - src/hmc5883l/javaupm_hmc5883l.i | 1 - src/itg3200/javaupm_itg3200.i | 1 - src/lsm303/javaupm_lsm303.i | 1 - 4 files changed, 4 deletions(-) diff --git a/src/adxl345/javaupm_adxl345.i b/src/adxl345/javaupm_adxl345.i index 8094f6dd..e66ee923 100644 --- a/src/adxl345/javaupm_adxl345.i +++ b/src/adxl345/javaupm_adxl345.i @@ -16,7 +16,6 @@ %typemap(out) float * { $result = JCALL1(NewFloatArray, jenv, 3); JCALL4(SetFloatArrayRegion, jenv, $result, 0, 3, $1); - //delete [] $1; } diff --git a/src/hmc5883l/javaupm_hmc5883l.i b/src/hmc5883l/javaupm_hmc5883l.i index 75a322b1..18ec4839 100644 --- a/src/hmc5883l/javaupm_hmc5883l.i +++ b/src/hmc5883l/javaupm_hmc5883l.i @@ -16,7 +16,6 @@ %typemap(out) int16_t *coordinates { $result = JCALL1(NewShortArray, jenv, 3); JCALL4(SetShortArrayRegion, jenv, $result, 0, 3, (jshort*)$1); - //delete [] $1; } %include "hmc5883l.h" diff --git a/src/itg3200/javaupm_itg3200.i b/src/itg3200/javaupm_itg3200.i index 1ebf1fe4..ff108311 100644 --- a/src/itg3200/javaupm_itg3200.i +++ b/src/itg3200/javaupm_itg3200.i @@ -30,7 +30,6 @@ %typemap(out) int16_t *getRawValues { $result = JCALL1(NewShortArray, jenv, 3); JCALL4(SetShortArrayRegion, jenv, $result, 0, 3, (jshort*)$1); - //delete [] $1; } %include "itg3200.h" diff --git a/src/lsm303/javaupm_lsm303.i b/src/lsm303/javaupm_lsm303.i index bce72f72..eb99988d 100644 --- a/src/lsm303/javaupm_lsm303.i +++ b/src/lsm303/javaupm_lsm303.i @@ -16,7 +16,6 @@ %typemap(out) int16_t *getRawAccelData { $result = JCALL1(NewShortArray, jenv, 3); JCALL4(SetShortArrayRegion, jenv, $result, 0, 3, (jshort*)$1); - //delete [] $1; } %include "lsm303.h"