Remove unused variable in CursorProcessorCompiler
@@ -45,7 +45,6 @@ import com.google.common.collect.ImmutableSet;
import com.google.common.primitives.Primitives;
import io.airlift.slice.Slice;
-import java.util.ArrayList;
import java.util.List;
import java.util.Set;
@@ -75,18 +74,15 @@ public class CursorProcessorCompiler
public void generateMethods(ClassDefinition classDefinition, CallSiteBinder callSiteBinder, RowExpression filter, List<RowExpression> projections)
{
CachedInstanceBinder cachedInstanceBinder = new CachedInstanceBinder(classDefinition, callSiteBinder);
- List<PreGeneratedExpressions> allPreGeneratedExpressions = new ArrayList<>(projections.size() + 1);
generateProcessMethod(classDefinition, projections.size());
PreGeneratedExpressions filterPreGeneratedExpressions = generateMethodsForLambdaAndTry(classDefinition, callSiteBinder, cachedInstanceBinder, filter, "filter");
- allPreGeneratedExpressions.add(filterPreGeneratedExpressions);
generateFilterMethod(classDefinition, callSiteBinder, cachedInstanceBinder, filterPreGeneratedExpressions, filter);
for (int i = 0; i < projections.size(); i++) {
String methodName = "project_" + i;
PreGeneratedExpressions projectPreGeneratedExpressions = generateMethodsForLambdaAndTry(classDefinition, callSiteBinder, cachedInstanceBinder, projections.get(i), methodName);
- allPreGeneratedExpressions.add(projectPreGeneratedExpressions);
generateProjectMethod(classDefinition, callSiteBinder, cachedInstanceBinder, projectPreGeneratedExpressions, methodName, projections.get(i));
}
