Skip to content

Commit

Permalink
Remove unused By code
Browse files Browse the repository at this point in the history
  • Loading branch information
whscullin committed Dec 6, 2024
1 parent 893df28 commit aa45389
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 77 deletions.
52 changes: 0 additions & 52 deletions packages/malloy/src/lang/ast/expressions/top-by.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/malloy/src/lang/ast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export * from './expressions/expr-array-literal';
export * from './expressions/expr-record-literal';
export * from './expressions/range';
export * from './expressions/time-frame';
export * from './expressions/top-by';
export * from './expressions/unary';
export * from './statements/import-statement';
export * from './query-properties/extend';
Expand Down
24 changes: 0 additions & 24 deletions packages/malloy/src/model/malloy_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -925,30 +925,6 @@ export type FunctionOrderBy =
| FunctionOrderByExpression
| FunctionOrderByDefaultExpression;

export interface ByName {
by: 'name';
name: string;
}
export interface ByExpression {
by: 'expression';
e: Expr;
}
export type By = ByName | ByExpression;

export function isByName(by: By | undefined): by is ByName {
if (by === undefined) {
return false;
}
return by.by === 'name';
}

export function isByExpression(by: By | undefined): by is ByExpression {
if (by === undefined) {
return false;
}
return by.by === 'name';
}

/** reference to a data source */
// TODO this should be renamed to `SourceRef`
export type StructRef = string | SourceDef;
Expand Down

0 comments on commit aa45389

Please sign in to comment.