Skip to content

Commit 9653586

Browse files
committed
Remove deprecated code
1 parent c40bd4f commit 9653586

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

scripts/docs.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@ const configs = {
132132
dst: 'PAIRMUTATORS/',
133133
libs: ['pairmutator.js']
134134
},
135-
CONCURRENCY: {
136-
readme: 'README_CONCURRENCY.md',
137-
dst: 'CONCURRENCY/',
138-
libs: ['concurrency.js']
139-
},
140135
MCE: {
141136
readme: 'README_MCE.md',
142137
dst: 'MCE/',

src/modules/__tests__/moduleUtils.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
import { isSourceModule, removeExportDefault } from '../utils'
2-
3-
describe('removeExportDefault', () => {
4-
test('Ignores normal strings', () => {
5-
expect(removeExportDefault('normal string')).toEqual('normal string')
6-
})
7-
8-
test('Removes export default keywords and trailing spaces', () => {
9-
expect(removeExportDefault('export default normal string')).toEqual('normal string')
10-
})
11-
})
1+
import { isSourceModule } from '../utils'
122

133
describe('isSourceModule', () => {
144
test.each([

src/modules/utils.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ import type { RecursivePartial } from '../types'
44
import type { ImportOptions } from './moduleTypes'
55
import { defaultAnalysisOptions } from './preprocessor/analyzer'
66

7-
const exportDefaultStr = 'export default'
8-
export function removeExportDefault(text: string) {
9-
if (text.startsWith(exportDefaultStr)) {
10-
text = text.substring(exportDefaultStr.length).trim()
11-
}
12-
13-
if (text.endsWith(';')) {
14-
text = text.slice(0, -1)
15-
}
16-
17-
return text
18-
}
19-
207
export function mergeImportOptions(src?: RecursivePartial<ImportOptions>): ImportOptions {
218
const baseOptions = _.cloneDeep(defaultAnalysisOptions)
229
return _.merge(baseOptions, src as any)

0 commit comments

Comments
 (0)