[gnome-games/wip/exalm/cache2: 30/45] database: Remove DatabaseUid
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/cache2: 30/45] database: Remove DatabaseUid
- Date: Mon, 8 Oct 2018 22:36:27 +0000 (UTC)
commit cf53ba371bc9e983a3cc4962dd81edb185141c3a
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Oct 1 21:35:33 2018 +0500
database: Remove DatabaseUid
Since DatabaseMetadata handles uid loading now, this class is no longer
necessary and can be removed.
Also remove now unused Database.get_uid().
src/database/database-game.vala | 2 +-
src/database/database-uid.vala | 66 -----------------------------------------
src/database/database.vala | 4 ---
src/meson.build | 1 -
4 files changed, 1 insertion(+), 72 deletions(-)
---
diff --git a/src/database/database-game.vala b/src/database/database-game.vala
index 71d3137f..aa86ff62 100644
--- a/src/database/database-game.vala
+++ b/src/database/database-game.vala
@@ -20,7 +20,7 @@ private class Games.DatabaseGame : Object, Game {
}
public Uid get_uid () {
- return database.get_uid (game.get_uid ());
+ return game.get_uid ();
}
public Icon get_icon () {
diff --git a/src/database/database.vala b/src/database/database.vala
index ebd54f45..352b0caa 100644
--- a/src/database/database.vala
+++ b/src/database/database.vala
@@ -63,10 +63,6 @@ private class Games.Database : Object {
return new DatabaseUriSource (database);
}
- public DatabaseUid get_uid (Uid uid) {
- return new DatabaseUid (database, uid);
- }
-
public DatabaseMetadata get_metadata (Game game) {
return new DatabaseMetadata (database, game);
}
diff --git a/src/meson.build b/src/meson.build
index fab72bb9..e77705d9 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -50,7 +50,6 @@ vala_sources = [
'database/database-error.vala',
'database/database-game.vala',
'database/database-metadata.vala',
- 'database/database-uid.vala',
'database/database-uri-iterator.vala',
'database/database-uri-source.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]