[gnome-games] steam: Don't check for duplicate games
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] steam: Don't check for duplicate games
- Date: Fri, 10 Aug 2018 20:25:41 +0000 (UTC)
commit d7e8b1e07f97a9279514c27535f4984c80c86bbf
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Fri Aug 10 16:55:48 2018 +0500
steam: Don't check for duplicate games
This is already being done for global collection.
plugins/steam/src/steam-plugin.vala | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/plugins/steam/src/steam-plugin.vala b/plugins/steam/src/steam-plugin.vala
index a4d7515e..e394e361 100644
--- a/plugins/steam/src/steam-plugin.vala
+++ b/plugins/steam/src/steam-plugin.vala
@@ -5,11 +5,9 @@ private class Games.SteamPlugin : Object, Plugin {
private const string PLATFORM_ID = "Steam";
private const string PLATFORM_NAME = _("Steam");
- private static HashTable<string, Game> game_for_id;
private static Platform platform;
static construct {
- game_for_id = new HashTable<string, Game> (str_hash, str_equal);
platform = new GenericPlatform (PLATFORM_ID, PLATFORM_NAME);
}
@@ -48,12 +46,6 @@ private class Games.SteamPlugin : Object, Plugin {
if (game_id == null)
throw new SteamError.NO_APPID (_("Couldn’t get Steam appid from manifest “%s”."),
appmanifest_path);
- if (game_id in game_for_id) {
- var game = game_for_id[game_id];
-
- return game;
- }
-
var uid = new SteamUid (game_id);
var title = new SteamTitle (registry);
var icon = new SteamIcon (game_id);
@@ -65,8 +57,6 @@ private class Games.SteamPlugin : Object, Plugin {
game.set_icon (icon);
game.set_cover (cover);
- game_for_id[game_id] = game;
-
return game;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]