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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user