Deleting some unused code

This commit is contained in:
Sanne Grinovero 2023-06-21 14:47:46 +02:00 committed by Sanne Grinovero
parent e9f879d9d6
commit ea56fbdb53
4 changed files with 0 additions and 34 deletions

View File

@ -1381,15 +1381,4 @@ public class ActionQueue {
}
private abstract static class ListProvider<T extends ComparableExecutable> {
abstract ExecutableList<T> get(ActionQueue instance);
abstract ExecutableList<T> init(ActionQueue instance);
ExecutableList<T> getOrInit( ActionQueue instance ) {
ExecutableList<T> list = get( instance );
if ( list == null ) {
list = init( instance );
}
return list;
}
}
}

View File

@ -36,7 +36,6 @@ import jakarta.persistence.criteria.Predicate;
public abstract class AbstractSqmAttributeJoin<O,T>
extends AbstractSqmQualifiedJoin<O,T>
implements SqmAttributeJoin<O,T> {
private static final Logger log = Logger.getLogger( AbstractSqmAttributeJoin.class );
private final boolean fetched;

View File

@ -20,8 +20,6 @@ import org.hibernate.type.CompositeType;
public abstract class AbstractCompositionAttribute
extends AbstractNonIdentifierAttribute {
private final int columnStartPosition;
protected AbstractCompositionAttribute(
AttributeSource source,
SessionFactoryImplementor sessionFactory,
@ -31,7 +29,6 @@ public abstract class AbstractCompositionAttribute
int columnStartPosition,
BaselineAttributeInformation baselineInfo) {
super( source, sessionFactory, entityBasedAttributeNumber, attributeName, attributeType, baselineInfo );
this.columnStartPosition = columnStartPosition;
}
@Override

View File

@ -25,25 +25,6 @@ public final class LogInspectionHelper {
private LogInspectionHelper() {
}
private static Log4J2DelegatingLogger convertType(Object loggerReference) {
if ( loggerReference instanceof DelegatingBasicLogger) {
//Most loggers generated via the annotation processor are of this type
DelegatingBasicLogger wrapper = (DelegatingBasicLogger) loggerReference;
try {
return extractFromWrapper( wrapper );
}
catch (Exception cause) {
throw new RuntimeException( cause );
}
}
if ( ! ( loggerReference instanceof Log4J2DelegatingLogger ) ) {
throw new AssertionFailure( "Unexpected log type: JBoss Logger didn't register the custom TestableLoggerProvider as logger provider" );
}
return (Log4J2DelegatingLogger) loggerReference;
}
public static void registerListener(LogListener listener, BasicLogger log) {
convertType( log ).registerListener( listener );
}