IDEMPIERE-2088 Remove useless code

This commit is contained in:
Carlos Ruiz 2014-10-15 14:12:03 -05:00
parent 7e1e7a8036
commit 3200a5b6f2
12 changed files with 15 additions and 107 deletions

View File

@ -39,7 +39,7 @@ public class MBPGroup extends X_C_BP_Group
/** /**
* *
*/ */
private static final long serialVersionUID = -5323639776872742839L; private static final long serialVersionUID = 8897399796117872715L;
/** /**
* Get MBPGroup from Cache * Get MBPGroup from Cache
@ -245,14 +245,4 @@ public class MBPGroup extends X_C_BP_Group
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_BP_Group_Acct");
} // beforeDelete
} // MBPGroup } // MBPGroup

View File

@ -47,7 +47,7 @@ public class MBPartner extends X_C_BPartner
/** /**
* *
*/ */
private static final long serialVersionUID = -4308267492285903865L; private static final long serialVersionUID = -5503105554864289337L;
/** /**
* Get Empty Template Business Partner * Get Empty Template Business Partner
@ -945,17 +945,6 @@ public class MBPartner extends X_C_BPartner
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_BP_Customer_Acct")
&& delete_Accounting("C_BP_Vendor_Acct")
&& delete_Accounting("C_BP_Employee_Acct");
} // beforeDelete
/** /**
* After Delete * After Delete
* @param success * @param success

View File

@ -34,7 +34,7 @@ public class MBankAccount extends X_C_BankAccount
/** /**
* *
*/ */
private static final long serialVersionUID = -8742307130542608791L; private static final long serialVersionUID = 2392818253347168347L;
/** /**
* Get BankAccount from Cache * Get BankAccount from Cache
@ -134,13 +134,4 @@ public class MBankAccount extends X_C_BankAccount
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_BankAccount_Acct");
} // beforeDelete
} // MBankAccount } // MBankAccount

View File

@ -35,7 +35,7 @@ public class MCashBook extends X_C_CashBook
/** /**
* *
*/ */
private static final long serialVersionUID = 4602423783184037174L; private static final long serialVersionUID = 3991585668643587699L;
/** /**
* Get MCashBook from Cache * Get MCashBook from Cache
@ -143,13 +143,4 @@ public class MCashBook extends X_C_CashBook
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_Cashbook_Acct");
} // beforeDelete
} // MCashBook } // MCashBook

View File

@ -39,7 +39,7 @@ public class MCharge extends X_C_Charge
/** /**
* *
*/ */
private static final long serialVersionUID = 8246481667219415012L; private static final long serialVersionUID = -4628105180010713510L;
/** /**
* Get Charge Account * Get Charge Account
@ -150,13 +150,4 @@ public class MCharge extends X_C_Charge
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_Charge_Acct");
} // beforeDelete
} // MCharge } // MCharge

View File

@ -757,7 +757,7 @@ public class MProduct extends X_M_Product
}*/ }*/
// //
return delete_Accounting("M_Product_Acct"); return true;
} // beforeDelete } // beforeDelete
@Override @Override

View File

@ -41,8 +41,7 @@ public class MProductCategory extends X_M_Product_Category
/** /**
* *
*/ */
private static final long serialVersionUID = -1290361229726779892L; private static final long serialVersionUID = 1239249591584452179L;
/** /**
* Get from Cache * Get from Cache
@ -178,15 +177,6 @@ public class MProductCategory extends X_M_Product_Category
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("M_Product_Category_Acct");
} // beforeDelete
/** /**
* FiFo Material Movement Policy * FiFo Material Movement Policy
* @return true if FiFo * @return true if FiFo

View File

@ -36,7 +36,7 @@ public class MProject extends X_C_Project
/** /**
* *
*/ */
private static final long serialVersionUID = 2151648902207548617L; private static final long serialVersionUID = -6103964836289951325L;
/** /**
* Create new Project by copying * Create new Project by copying
@ -442,15 +442,6 @@ public class MProject extends X_C_Project
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_Project_Acct");
} // beforeDelete
/** /**
* After Delete * After Delete
* @param success * @param success

View File

@ -41,7 +41,7 @@ public class MTax extends X_C_Tax
/** /**
* *
*/ */
private static final long serialVersionUID = 6423328193350641479L; private static final long serialVersionUID = 5871827364071851846L;
/** Cache */ /** Cache */
private static CCache<Integer,MTax> s_cache = new CCache<Integer,MTax>(Table_Name, 5); private static CCache<Integer,MTax> s_cache = new CCache<Integer,MTax>(Table_Name, 5);
@ -317,13 +317,4 @@ public class MTax extends X_C_Tax
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_Tax_Acct");
} // beforeDelete
} // MTax } // MTax

View File

@ -41,7 +41,8 @@ public class MWarehouse extends X_M_Warehouse
/** /**
* *
*/ */
private static final long serialVersionUID = 7037547130625087045L; private static final long serialVersionUID = 2696705459515717619L;
/** /**
* Get from Cache * Get from Cache
* @param ctx context * @param ctx context
@ -273,13 +274,4 @@ public class MWarehouse extends X_M_Warehouse
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("M_Warehouse_Acct");
} // beforeDelete
} // MWarehouse } // MWarehouse

View File

@ -31,7 +31,7 @@ public class MWithholding extends X_C_Withholding
/** /**
* *
*/ */
private static final long serialVersionUID = 7734620609620104180L; private static final long serialVersionUID = 6368597644089198711L;
/** /**
* Standard Constructor * Standard Constructor
@ -69,13 +69,4 @@ public class MWithholding extends X_C_Withholding
return success; return success;
} // afterSave } // afterSave
/**
* Before Delete
* @return true
*/
protected boolean beforeDelete ()
{
return delete_Accounting("C_Withholding_Acct");
} // beforeDelete
} // MWithholding } // MWithholding

View File

@ -3793,6 +3793,7 @@ public abstract class PO
* @param acctTable accounting sub table * @param acctTable accounting sub table
* @return true * @return true
*/ */
@Deprecated // see IDEMPIERE-2088
protected boolean delete_Accounting(String acctTable) protected boolean delete_Accounting(String acctTable)
{ {
return true; return true;