svn commit: r901009 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r901009 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java

lektran
Author: lektran
Date: Wed Jan 20 00:03:44 2010
New Revision: 901009

URL: http://svn.apache.org/viewvc?rev=901009&view=rev
Log:
Removed unused private method

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java?rev=901009&r1=901008&r2=901009&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java Wed Jan 20 00:03:44 2010
@@ -372,39 +372,6 @@
         return contactMech;
     }
 
-    private static GenericValue getAddressFromParty(GenericValue party, String purposeTypeId) {
-        if (party == null) return null;
-
-        GenericValue contactMech = null;
-        GenericValue postalAddress = null;
-        try {
-            List mecs = party.getRelated("PartyContactMechPurpose",
-                UtilMisc.toMap("contactMechPurposeTypeId", purposeTypeId), null);
-            if (mecs != null) {
-                List filteredMecs = EntityUtil.filterByDate(mecs);
-                GenericValue mecPurpose = EntityUtil.getFirst(filteredMecs);
-                if (mecPurpose != null)
-                    contactMech = mecPurpose.getRelatedOne("ContactMech");
-            }
-        } catch (GenericEntityException e) {
-            Debug.logError(e, "Trouble getting current ContactMech for Party/Purpose", module);
-        }
-
-        if (contactMech != null) {
-            if (contactMech.getString("contactMechTypeId").equals("POSTAL_ADDRESS")) {
-                try {
-                    postalAddress = contactMech.getRelatedOne("PostalAddress");
-                } catch (GenericEntityException e) {
-                    Debug.logError(e, "Trouble getting PostalAddress from ContactMech", module);
-                }
-            }
-        }
-
-        if (postalAddress != null)
-            return postalAddress;
-        return null;
-    }
-
     /**
      * Method to return the total amount of an invoice which is not yet applied to a payment
      * @param invoice GenericValue object of the Invoice