File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
packages/playwright/src/reporters Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,6 @@ class HtmlBuilder {
226
226
private _dataZipFile : ZipFile ;
227
227
private _hasTraces = false ;
228
228
private _attachmentsBaseURL : string ;
229
- private _projectToId : Map < Suite , number > = new Map ( ) ;
230
- private _lastProjectId = 0 ;
231
229
232
230
constructor ( config : FullConfig , outputDir : string , attachmentsBaseURL : string ) {
233
231
this . _config = config ;
@@ -406,16 +404,6 @@ class HtmlBuilder {
406
404
} ;
407
405
}
408
406
409
- private _projectId ( suite : Suite ) : number {
410
- const project = projectSuite ( suite ) ;
411
- let id = this . _projectToId . get ( project ) ;
412
- if ( ! id ) {
413
- id = ++ this . _lastProjectId ;
414
- this . _projectToId . set ( project , id ) ;
415
- }
416
- return id ;
417
- }
418
-
419
407
private _serializeAttachments ( attachments : JsonAttachment [ ] ) {
420
408
let lastAttachment : TestAttachment | undefined ;
421
409
return attachments . map ( a => {
@@ -653,10 +641,4 @@ function createSnippets(stepsInFile: MultiMap<string, TestStep>) {
653
641
}
654
642
}
655
643
656
- function projectSuite ( suite : Suite ) : Suite {
657
- while ( suite . parent ?. parent )
658
- suite = suite . parent ;
659
- return suite ;
660
- }
661
-
662
644
export default HtmlReporter ;
You can’t perform that action at this time.
0 commit comments