@@ -68,8 +68,6 @@ public function getResponse()
6868
6969 // Generate data based on the page that's requesting this chart.
7070 switch ($ page ) {
71- case 'buildProperties.php ' :
72- return $ this ->chartForBuildProperties ();
7371 case 'testOverview.php ' :
7472 return $ this ->chartForTestOverview ();
7573 case 'viewBuildGroup.php ' :
@@ -93,52 +91,6 @@ private function generateColorMap(): void
9391 }
9492 }
9593
96- private function chartForBuildProperties ()
97- {
98- $ request = request ();
99- $ defect_types = $ request ->session ()->get ('defecttypes ' );
100-
101- if (!$ defect_types ) {
102- abort (400 , 'No defecttypes defined in your session ' );
103- }
104- $ this ->defectTypes = $ defect_types ;
105-
106- // Construct an SQL SELECT clause for the requested types of defects.
107- $ defect_keys = [];
108- $ valid_defect_types = [
109- 'configureerrors ' ,
110- 'configurewarnings ' ,
111- 'builderrors ' ,
112- 'buildwarnings ' ,
113- 'testnotrun ' ,
114- 'testfailed ' ,
115- 'testpassed ' ,
116- ];
117- foreach ($ this ->defectTypes as $ type ) {
118- if (!in_array ($ type ['name ' ], $ valid_defect_types , true )) {
119- abort (400 , "Invalid defect type: {$ type ['name ' ]}" );
120- }
121- $ defect_keys [] = $ type ['name ' ];
122- }
123- $ defect_selection = implode (', ' , $ defect_keys );
124- $ stmt = $ this ->db ->prepare ("
125- SELECT
126- id,
127- $ defect_selection,
128- starttime
129- FROM build b
130- WHERE
131- projectid = ?
132- AND parentid IN (0, -1)
133- ORDER BY starttime
134- " );
135- if (!pdo_execute ($ stmt , [$ this ->project ->Id ])) {
136- abort (500 , 'Failed to load results ' );
137- }
138-
139- return $ this ->getTimelineChartData ($ stmt );
140- }
141-
14294 private function chartForTestOverview (): array
14395 {
14496 $ this ->defectTypes = [
0 commit comments