From 695db3e8ef4bb3b917aca87a138ae71b483c0611 Mon Sep 17 00:00:00 2001 From: Markus Till Date: Fri, 2 Oct 2020 15:43:06 +0200 Subject: [PATCH] remove unused isCreated Flag in user profile context --- .../java/org/keycloak/userprofile/UserProfileContext.java | 1 - .../userprofile/profile/DefaultUserProfileContext.java | 7 ------- 2 files changed, 8 deletions(-) diff --git a/server-spi-private/src/main/java/org/keycloak/userprofile/UserProfileContext.java b/server-spi-private/src/main/java/org/keycloak/userprofile/UserProfileContext.java index c17e0bedeb..e6c7e88bd0 100644 --- a/server-spi-private/src/main/java/org/keycloak/userprofile/UserProfileContext.java +++ b/server-spi-private/src/main/java/org/keycloak/userprofile/UserProfileContext.java @@ -24,7 +24,6 @@ import org.keycloak.userprofile.validation.UserUpdateEvent; */ public interface UserProfileContext { - boolean isCreate(); UserUpdateEvent getUpdateEvent(); UserProfile getCurrentProfile(); } diff --git a/services/src/main/java/org/keycloak/userprofile/profile/DefaultUserProfileContext.java b/services/src/main/java/org/keycloak/userprofile/profile/DefaultUserProfileContext.java index 3e214a031d..19176ab842 100644 --- a/services/src/main/java/org/keycloak/userprofile/profile/DefaultUserProfileContext.java +++ b/services/src/main/java/org/keycloak/userprofile/profile/DefaultUserProfileContext.java @@ -31,13 +31,11 @@ import org.keycloak.userprofile.validation.UserUpdateEvent; * @author Markus Till */ public class DefaultUserProfileContext implements UserProfileContext { - private boolean isCreated; private UserProfile currentUserProfile; private UserUpdateEvent userUpdateEvent; private DefaultUserProfileContext(UserUpdateEvent userUpdateEvent, UserProfile currentUserProfile) { this.userUpdateEvent = userUpdateEvent; - this.isCreated = false; this.currentUserProfile = currentUserProfile; } @@ -65,11 +63,6 @@ public class DefaultUserProfileContext implements UserProfileContext { return new DefaultUserProfileContext(UserUpdateEvent.UserResource, new UserRepresentationUserProfile(rep)); } - @Override - public boolean isCreate() { - return isCreated; - } - @Override public UserProfile getCurrentProfile() { return currentUserProfile;