1
0
forked from mirrors/0ad

Remove some invalid GetGUIObjectByName calls

Their return values (undefined) were unused since 2cccd9825d, which is why they
didn't break anything. But due to the latest GetGUIObjectByName API
changes, they triggered some errors. They can be fully removed safely
now.

Fixes #8340
This commit is contained in:
Vantha
2025-09-10 11:00:02 +02:00
committed by Nicolas Auvray
parent b4ad152df3
commit 2fd624260f
2 changed files with 0 additions and 2 deletions
@@ -18,7 +18,6 @@ class GameDetails
this.sgMapName = Engine.GetGUIObjectByName("sgMapName");
this.sgGame = Engine.GetGUIObjectByName("sgGame");
this.sgPlayersAndMods = Engine.GetGUIObjectByName("sgPlayersAndMods");
this.sgMapSize = Engine.GetGUIObjectByName("sgMapSize");
this.sgMapPreview = Engine.GetGUIObjectByName("sgMapPreview");
this.sgMapDescription = Engine.GetGUIObjectByName("sgMapDescription");
@@ -19,7 +19,6 @@ class ProfilePanel
this.totalGamesText = Engine.GetGUIObjectByName("totalGamesText");
this.highestRatingText = Engine.GetGUIObjectByName("highestRatingText");
this.rankText = Engine.GetGUIObjectByName("rankText");
this.fade = Engine.GetGUIObjectByName("fade");
this.playernameText = Engine.GetGUIObjectByName("playernameText");
this.profileArea = Engine.GetGUIObjectByName("profileArea");