Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Jun 6, 2024
1 parent 43c3d1a commit 31ae6ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions yarn-project/foundation/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,3 @@ export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;

/** Removes readonly modifiers for a type. */
export type Writeable<T> = { -readonly [P in keyof T]: T[P] };

// Only works for up to 4 parts separated by hyphens
export type ToCamelCase<S extends string> = S extends `${infer P1}-${infer P2}-${infer P3}-${infer P4}`
? `${P1}${Capitalize<P2>}${Capitalize<P3>}${Capitalize<P4>}`
: S extends `${infer P1}-${infer P2}-${infer P3}`
? `${P1}${Capitalize<P2>}${Capitalize<P3>}`
: S extends `${infer P1}-${infer P2}`
? `${P1}${Capitalize<P2>}`
: S;
4 changes: 0 additions & 4 deletions yarn-project/simulator/src/public/public_db_sources.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,4 @@ describe('world_state_public_db', () => {
await publicStateDb.rollbackToCheckpoint();
expect(await read()).toEqual(newValue5);
});

it('can add contracts', () => {
// const contractsDb = new ContractsDataSourcePublicDB()
});
});

0 comments on commit 31ae6ec

Please sign in to comment.