[PATCH 07/12] Removed dead code

Ian Bell <IBell@...>

From 78efb15ed70cdece6a120b864b54489871b0ae0c Mon Sep 17 00:00:00 2001

Message-Id: <78efb15ed70cdece6a120b864b54489871b0ae0c.1351009358.git.ibell@...>

In-Reply-To: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

References: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

From: Ian Bell <ibell@...>

Date: Tue, 23 Oct 2012 16:19:10 +0100

Subject: [PATCH 07/12] Removed dead code


Removed a line in jni that served no purpose


Signed-off-by: Ian Bell <ibell@...>


mama/jni/src/c/mamamsgjni.c |    3 +--

1 file changed, 1 insertion(+), 2 deletions(-)


diff --git a/mama/jni/src/c/mamamsgjni.c b/mama/jni/src/c/mamamsgjni.c

index bbb59de..2ed7e3c 100644

--- a/mama/jni/src/c/mamamsgjni.c

+++ b/mama/jni/src/c/mamamsgjni.c

@@ -4434,7 +4434,6 @@ JNIEXPORT jboolean JNICALL Java_com_wombat_mama_MamaMsg_tryString

   (JNIEnv * env, jobject this, jstring name, jint fid, jobject result)


     mama_status     status          = MAMA_STATUS_OK;

-    jlong           stringPointer     =   0;

     jlong              msgPointer      =   0;        

      const char*        c_name          =   NULL;

      const char*     retVal_c        =   NULL;

@@ -4449,7 +4448,7 @@ JNIEXPORT jboolean JNICALL Java_com_wombat_mama_MamaMsg_tryString

     /* Get the pointer to the underlying message*/                         

     msgPointer = (*env)->GetLongField(env,this,messagePointerFieldId_g);   


-                              "Null parameter, MamaMsg may have already been destroyed.", JNI_FALSE);    stringPointer   = (*env)->GetLongField(env,result,jMamaStringValue_g);

+                             "Null parameter, MamaMsg may have already been destroyed.", JNI_FALSE);


     if(MAMA_STATUS_OK==(mamaTryIgnoreNotFound(env, mamaMsg_getString(

                         CAST_JLONG_TO_POINTER(mamaMsg,msgPointer),c_name, fid,



Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Join {Openmama-dev@lists.openmama.org to automatically receive all group messages.