diff --git a/src/parsers/perl-junit/java-stack-trace-element-parser.ts b/src/parsers/perl-junit/java-stack-trace-element-parser.ts index dbc25495..f80f5699 100644 --- a/src/parsers/perl-junit/java-stack-trace-element-parser.ts +++ b/src/parsers/perl-junit/java-stack-trace-element-parser.ts @@ -3,9 +3,6 @@ export interface StackTraceElement { lineStr: string } -// classloader and module name are optional: -// at //(:) -// https://github.com/eclipse-openj9/openj9/issues/11452#issuecomment-754946992 // perl: # at t/test1.t line 23. const re = /\s+at (.*) line (\d+)\.$/ @@ -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} -}