ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lekt...@apache.org
Subject svn commit: r1512572 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
Date Sat, 10 Aug 2013 07:03:21 GMT
Author: lektran
Date: Sat Aug 10 07:03:21 2013
New Revision: 1512572

URL: http://svn.apache.org/r1512572
Log:
Remove dead code

Modified:
    ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java

Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java?rev=1512572&r1=1512571&r2=1512572&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java Sat
Aug 10 07:03:21 2013
@@ -189,7 +189,6 @@ public class ContactMechServices {
         // never change a contact mech, just create a new one with the changes
         GenericValue newContactMech = GenericValue.create(contactMech);
         GenericValue newPartyContactMech = GenericValue.create(partyContactMech);
-        GenericValue relatedEntityToSet = null;
 
         if ("POSTAL_ADDRESS".equals(contactMechTypeId)) {
             return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
@@ -211,8 +210,6 @@ public class ContactMechServices {
         toBeStored.add(newPartyContactMech);
 
         if (isModified) {
-            if (relatedEntityToSet != null) toBeStored.add(relatedEntityToSet);
-
             newContactMech.set("contactMechId", newCmId);
             newPartyContactMech.set("contactMechId", newCmId);
             newPartyContactMech.set("fromDate", now);



Mime
View raw message