You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2013/08/10 09:03:21 UTC
svn commit: r1512572 -
/ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
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);