From 36eaf3bd5729b57ce6f7c5378a8cd92b1ed4469c Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Tue, 14 May 2024 20:18:37 +0530 Subject: [PATCH] chore: Remove unused method --- .../external/helpers/AppsmithBeanUtils.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/AppsmithBeanUtils.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/AppsmithBeanUtils.java index 1c90655bf2..4d9929e644 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/AppsmithBeanUtils.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/AppsmithBeanUtils.java @@ -38,21 +38,6 @@ public final class AppsmithBeanUtils { BeanUtils.copyProperties(src, target, getNullPropertyNames(src)); } - public static int countOfNonNullFields(Object source) { - int count = 0; - final BeanWrapper src = new BeanWrapperImpl(source); - java.beans.PropertyDescriptor[] pds = src.getPropertyDescriptors(); - - for (java.beans.PropertyDescriptor pd : pds) { - Object srcValue = src.getPropertyValue(pd.getName()); - if (srcValue != null) { - count++; - } - } - - return count++; - } - public static void copyNestedNonNullProperties(Object source, Object target) { if (source == null || target == null) { return;