chore: remove unused project to id mapping from html builder
This commit is contained in:
parent
de39d227f7
commit
709de8ff03
|
|
@ -226,8 +226,6 @@ class HtmlBuilder {
|
|||
private _dataZipFile: ZipFile;
|
||||
private _hasTraces = false;
|
||||
private _attachmentsBaseURL: string;
|
||||
private _projectToId: Map<Suite, number> = new Map();
|
||||
private _lastProjectId = 0;
|
||||
|
||||
constructor(config: FullConfig, outputDir: string, attachmentsBaseURL: string) {
|
||||
this._config = config;
|
||||
|
|
@ -406,16 +404,6 @@ class HtmlBuilder {
|
|||
};
|
||||
}
|
||||
|
||||
private _projectId(suite: Suite): number {
|
||||
const project = projectSuite(suite);
|
||||
let id = this._projectToId.get(project);
|
||||
if (!id) {
|
||||
id = ++this._lastProjectId;
|
||||
this._projectToId.set(project, id);
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
private _serializeAttachments(attachments: JsonAttachment[]) {
|
||||
let lastAttachment: TestAttachment | undefined;
|
||||
return attachments.map(a => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue