Skip to content

Commit

Permalink
fix: remove now-unused code from replay-transcript.js
Browse files Browse the repository at this point in the history
Our replay-transcript.js tool has some affordances for forcing a
rebuild of the lockdown and supervisor bundles. Now that the bundles
are coming from separate packages, the affordances have changed. I'm
not sure if the new code is as useful as the original.
  • Loading branch information
warner committed Mar 21, 2023
1 parent 0024f01 commit 8139f14
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/SwingSet/misc-tools/replay-transcript.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ import { makeDummyMeterControl } from '../src/kernel/dummyMeterControl.js';
import { makeGcAndFinalize } from '../src/lib-nodejs/gc-and-finalize.js';
import engineGC from '../src/lib-nodejs/engine-gc.js';

// Set the absolute path of the SDK to use for bundling
// This can help if there are symlinks in the path that should be respected
// to match the path of the SDK that produced the initial transcript
// For e.g. set to '/src' if replaying a docker based loadgen transcript
const ABSOLUTE_SDK_PATH = null;

// Rebuild the bundles when starting the replay.
// Disable if bundles were previously extracted form a Kernel DB, or
// to save a few seconds and rely upon previously built versions instead
Expand Down Expand Up @@ -72,13 +66,6 @@ function makeSnapStoreIO() {
}

async function makeBundles() {
const controllerUrl = new URL(
`${
ABSOLUTE_SDK_PATH ? `${ABSOLUTE_SDK_PATH}/packages/SwingSet` : '..'
}/src/controller/initializeSwingset.js`,
import.meta.url,
);

// we explicitly re-bundle these entry points, rather than using
// getLockdownBundle(), because if you're calling this, you're
// probably editing the sources anyways
Expand Down

0 comments on commit 8139f14

Please sign in to comment.