Skip to content

Commit

Permalink
remove useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
chylli-deriv committed Jan 17, 2024
1 parent 6f36be1 commit 7939020
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/parsers/perl-junit/java-stack-trace-element-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ export interface StackTraceElement {
lineStr: string
}

// classloader and module name are optional:
// at <CLASSLOADER>/<MODULE_NAME_AND_VERSION>/<FULLY_QUALIFIED_METHOD_NAME>(<FILE_NAME>:<LINE_NUMBER>)
// https://github.com/eclipse-openj9/openj9/issues/11452#issuecomment-754946992
// perl: # at t/test1.t line 23.
const re = /\s+at (.*) line (\d+)\.$/

Expand All @@ -20,19 +17,3 @@ export function parseStackTraceElement(stackTraceLine: string): StackTraceElemen
}
return undefined
}

function parseClassLoaderAndModule(maybeClassLoaderAndModuleNameAndVersion?: string): {
classLoader?: string
moduleNameAndVersion?: string
} {
if (maybeClassLoaderAndModuleNameAndVersion) {
const res = maybeClassLoaderAndModuleNameAndVersion.split('/')
const classLoader = res[0]
let moduleNameAndVersion: string | undefined = res[1]
if (moduleNameAndVersion === '') {
moduleNameAndVersion = undefined
}
return {classLoader, moduleNameAndVersion}
}
return {classLoader: undefined, moduleNameAndVersion: undefined}
}

0 comments on commit 7939020

Please sign in to comment.