Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherswenson committed Jan 8, 2025
1 parent 108331b commit 640fb44
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/malloy/src/lang/ast/field-space/dynamic-space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {SpaceEntry} from '../types/space-entry';
import {ErrorFactory} from '../error-factory';
import {HasParameter} from '../parameters/has-parameter';
import {MalloyElement} from '../types/malloy-element';
import {Join} from '../source-properties/join';
import {SpaceField} from '../types/space-field';
import {JoinSpaceField} from './join-space-field';
import {ViewField} from './view-field';
Expand Down Expand Up @@ -117,7 +116,6 @@ export abstract class DynamicSpace
const fields: [string, SpaceField][] = [];
const joins: [string, SpaceField][] = [];
const turtles: [string, SpaceField][] = [];
const fixupJoins: [Join, model.JoinFieldDef][] = [];
for (const [name, spaceEntry] of this.entries()) {
if (spaceEntry instanceof StructSpaceFieldBase) {
joins.push([name, spaceEntry]);
Expand All @@ -135,8 +133,6 @@ export abstract class DynamicSpace
if (!ErrorFactory.didCreate(joinStruct)) {
fieldIndices.set(name, this.sourceDef.fields.length);
this.sourceDef.fields.push(joinStruct);
// fixupJoins.push([field.join, joinStruct]);

field.join.fixupJoinOn(this, joinStruct);
}
} else {
Expand All @@ -152,11 +148,6 @@ export abstract class DynamicSpace
// }
}
}

// If we have join expressions, we need to now go back and fill them in
for (const [join, missingOn] of fixupJoins) {
join.fixupJoinOn(this, missingOn);
}
// Add access modifiers at the end so views don't obey them
for (const [name, access] of this.newAccessModifiers) {
const index = this.sourceDef.fields.findIndex(
Expand Down

0 comments on commit 640fb44

Please sign in to comment.