From bbfad943a0aaa3db9749db56c0201d65fdc9b302 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Fri, 5 Jul 2019 15:19:09 +0100 Subject: [PATCH] HHH-13496 ManagedFlushChecker and AfterCompletionAction fields are unused in SessionImpl --- .../java/org/hibernate/internal/SessionImpl.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java index 52a06e22ee..f83d12ba84 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java @@ -340,8 +340,6 @@ public final class SessionImpl private void initializeFromSessionOwner(SessionOwner sessionOwner) { - ManagedFlushChecker managedFlushChecker; - AfterCompletionAction afterCompletionAction; if ( sessionOwner != null ) { if ( sessionOwner.getExceptionMapper() != null ) { exceptionMapper = sessionOwner.getExceptionMapper(); @@ -349,23 +347,9 @@ public final class SessionImpl else { exceptionMapper = ExceptionMapperStandardImpl.INSTANCE; } - if ( sessionOwner.getAfterCompletionAction() != null ) { - afterCompletionAction = sessionOwner.getAfterCompletionAction(); - } - else { - afterCompletionAction = STANDARD_AFTER_COMPLETION_ACTION; - } - if ( sessionOwner.getManagedFlushChecker() != null ) { - managedFlushChecker = sessionOwner.getManagedFlushChecker(); - } - else { - managedFlushChecker = STANDARD_MANAGED_FLUSH_CHECKER; - } } else { exceptionMapper = ExceptionMapperStandardImpl.INSTANCE; - afterCompletionAction = STANDARD_AFTER_COMPLETION_ACTION; - managedFlushChecker = STANDARD_MANAGED_FLUSH_CHECKER; } }