Skip to content

Commit

Permalink
Merge pull request #275 from Ljzn/master
Browse files Browse the repository at this point in the history
remove duplicate code and tests
  • Loading branch information
zhfnjust authored Nov 4, 2024
2 parents f15b61b + 4aeb255 commit 60c9138
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/compilerWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,6 @@ export function compile(

const curWorkingDir = settings.cwd || srcDir;

settings = Object.assign({}, defaultCompilingSettings, settings);

const sourceContent = source.content !== undefined ? source.content : readFileSync(sourcePath, 'utf8');

const maxBuffer = settings.stdout ? 1024 * 1024 * 100 : 1024 * 1024;
Expand Down
8 changes: 0 additions & 8 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ describe('utils', () => {
expect(arraySize).to.includes.members([2, 3])
})

it('arrayTypeAndSize bool[2][3][8][1]', () => {

const [elemTypeName, arraySize] = arrayTypeAndSize("bool[2][3][8][1]");
expect(elemTypeName).to.equal('bool')
expect(arraySize).to.includes.members([2, 3, 8, 1])
})


it('arrayTypeAndSize bool[2][3][8][1]', () => {

const [elemTypeName, arraySize] = arrayTypeAndSize("bool[2][3][8][1]");
Expand Down

0 comments on commit 60c9138

Please sign in to comment.