remove unused isCreated Flag in user profile context

This commit is contained in:
Markus Till 2020-10-02 15:43:06 +02:00 committed by Pedro Igor
parent 7da619385c
commit 695db3e8ef
2 changed files with 0 additions and 8 deletions

View file

@ -24,7 +24,6 @@ import org.keycloak.userprofile.validation.UserUpdateEvent;
*/
public interface UserProfileContext {
boolean isCreate();
UserUpdateEvent getUpdateEvent();
UserProfile getCurrentProfile();
}

View file

@ -31,13 +31,11 @@ import org.keycloak.userprofile.validation.UserUpdateEvent;
* @author <a href="mailto:markus.till@bosch.io">Markus Till</a>
*/
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;