Return-Path: X-Original-To: apmail-ofbiz-commits-archive@www.apache.org Delivered-To: apmail-ofbiz-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D03DD10182 for ; Sat, 10 Aug 2013 07:03:58 +0000 (UTC) Received: (qmail 68711 invoked by uid 500); 10 Aug 2013 07:03:57 -0000 Delivered-To: apmail-ofbiz-commits-archive@ofbiz.apache.org Received: (qmail 68401 invoked by uid 500); 10 Aug 2013 07:03:45 -0000 Mailing-List: contact commits-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list commits@ofbiz.apache.org Received: (qmail 68389 invoked by uid 99); 10 Aug 2013 07:03:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 07:03:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 07:03:41 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C8E86238888A; Sat, 10 Aug 2013 07:03:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1512572 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java Date: Sat, 10 Aug 2013 07:03:21 -0000 To: commits@ofbiz.apache.org From: lektran@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130810070321.C8E86238888A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);