Author: mrisaliti
Date: Tue Feb 8 18:36:34 2011
New Revision: 1068513
URL:
http://svn.apache.org/viewvc?rev=1068513&view=revLog:
Remove an unused private method of EntityDataServices instead of suppress it as unused (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataServices.java
Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataServices.java?rev=1068513&r1=1068512&r2=1068513&view=diff==============================================================================
--- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataServices.java (original)
+++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/data/EntityDataServices.java Tue Feb 8 18:36:34 2011
@@ -29,7 +29,6 @@ import org.ofbiz.entity.GenericValue;
import org.ofbiz.entity.datasource.GenericHelperInfo;
import org.ofbiz.entity.jdbc.DatabaseUtil;
import org.ofbiz.entity.model.ModelEntity;
-import org.ofbiz.entity.model.ModelField;
import org.ofbiz.entity.util.EntityListIterator;
import org.ofbiz.base.util.GeneralException;
import org.ofbiz.base.util.Debug;
@@ -317,26 +316,6 @@ public class EntityDataServices {
return newValue;
}
- @SuppressWarnings("unused")
- private String[] getEntityFieldNames(Delegator delegator, String entityName) {
- ModelEntity entity = delegator.getModelEntity(entityName);
- if (entity == null) {
- return null;
- }
- List<ModelField> modelFields = entity.getFieldsUnmodifiable();
- if (modelFields == null) {
- return null;
- }
-
- String[] fieldNames = new String[modelFields.size()];
- for (int i = 0; i < modelFields.size(); i++) {
- ModelField field = modelFields.get(i);
- fieldNames[i] = field.getName();
- }
-
- return fieldNames;
- }
-
public static Map<String, Object> rebuildAllIndexesAndKeys(DispatchContext dctx, Map<String, Object> context) {
Delegator delegator = dctx.getDelegator();
Security security = dctx.getSecurity();