Skip to content

Commit

Permalink
fix: Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
travisstebbins committed Feb 12, 2025
1 parent 77be33a commit 47e8bf2
Showing 1 changed file with 0 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,83 +391,6 @@ const buildAggregationExpression = (
);
};

// const buildTypedAggregationExpression = (
// mapValueSpecification: V1_ValueSpecification,
// reduceValueSpecification: V1_ValueSpecification,
// openVariables: string[],
// compileContext: V1_GraphBuilderContext,
// processingContext: V1_ProcessingContext,
// ): ValueSpecification => {
// assertType(
// mapValueSpecification,
// V1_Lambda,
// `Can't build aggregation: map value specification expected to be lambda`,
// );
// assertType(
// reduceValueSpecification,
// V1_Lambda,
// `Can't build aggregation: reduce value specification expected to be lambda`,
// );

// // column lambda
// let processedColumnLambda;
// if (
// mapValueSpecification.body[0] instanceof V1_AppliedFunction &&
// matchFunctionName(
// mapValueSpecification.body[0].function,
// Object.values(QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS),
// )
// ) {
// processedColumnLambda =
// returnUndefOnError(() =>
// buildCalendarFunctionExpression(
// mapValueSpecification,
// openVariables,
// compileContext,
// processingContext,
// ),
// ) ??
// new INTERNAL__UnknownValueSpecification(
// V1_serializeValueSpecification(
// mapValueSpecification,
// compileContext.extensions.plugins,
// ),
// );
// } else {
// processedColumnLambda =
// returnUndefOnError(() =>
// buildProjectionColumnLambda(
// mapValueSpecification,
// openVariables,
// compileContext,
// processingContext,
// ),
// ) ??
// new INTERNAL__UnknownValueSpecification(
// V1_serializeValueSpecification(
// mapValueSpecification,
// compileContext.extensions.plugins,
// ),
// );
// }

// // aggregate lambda
// const processedAggregateLambda =
// reduceValueSpecification.accept_ValueSpecificationVisitor(
// new V1_ValueSpecificationBuilder(
// compileContext,
// processingContext,
// openVariables,
// ),
// );

// return V1_buildBaseSimpleFunctionExpression(
// [processedColumnLambda, processedAggregateLambda],
// extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG),
// compileContext,
// );
// };

export const V1_buildGetAllFunctionExpression = (
functionName: string,
parameters: V1_ValueSpecification[],
Expand Down

0 comments on commit 47e8bf2

Please sign in to comment.