diff --git a/framework/src/Volo.Abp.Core/System/AbpObjectExtensions.cs b/framework/src/Volo.Abp.Core/System/AbpObjectExtensions.cs
index a173c2a95d..a3fd87188f 100644
--- a/framework/src/Volo.Abp.Core/System/AbpObjectExtensions.cs
+++ b/framework/src/Volo.Abp.Core/System/AbpObjectExtensions.cs
@@ -106,62 +106,5 @@ namespace System
return obj;
}
-
- ///
- /// Resets all fields of a given object to their default values.
- ///
- /// Type of the object.
- /// An object
- /// Alternative custom method to reset the values.
- /// Returns the original object.
- public static T ResetState(this T obj, Action customReset = null)
- {
- if (customReset != null)
- {
- customReset(obj);
- }
- else
- {
- var properties = typeof(T).GetProperties();
-
- foreach (var property in properties)
- {
- if (!property.CanWrite)
- {
- continue;
- }
-
- property.SetValue(obj, null);
- }
- }
-
- return obj;
- }
-
- ///
- /// Applies all fields of a given object from it's counterpart.
- ///
- /// Type of the object.
- /// An object.
- /// An object from which we copy the values.
- /// Returns the original object.
- public static T ApplyState(this T obj, T other)
- {
- // This code is not production ready and it should be removed once
- // the proper validation in Blazorise is done!
- var properties = typeof(T).GetProperties();
-
- foreach (var property in properties)
- {
- if (!property.CanWrite)
- {
- continue;
- }
-
- property.SetValue(obj, typeof(T).GetProperty(property.Name).GetValue(other));
- }
-
- return obj;
- }
}
}