[gnome-games/wip/theawless/simplify-thumbnail: 1/5] game-thumbnail: Remove unused code
- From: Abhinav Singh <abhinavsingh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/theawless/simplify-thumbnail: 1/5] game-thumbnail: Remove unused code
- Date: Tue, 2 Oct 2018 15:23:02 +0000 (UTC)
commit 9c7982315bee28d55f9719b0b2e599f160905339
Author: theawless <theawless gmail com>
Date: Tue Oct 2 15:37:22 2018 +0530
game-thumbnail: Remove unused code
src/ui/game-thumbnail.vala | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/ui/game-thumbnail.vala b/src/ui/game-thumbnail.vala
index 99bcc89c..2fe97e47 100644
--- a/src/ui/game-thumbnail.vala
+++ b/src/ui/game-thumbnail.vala
@@ -1,9 +1,6 @@
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.GameThumbnail: Gtk.DrawingArea {
- private const Gtk.CornerType[] right_corners = { Gtk.CornerType.TOP_RIGHT,
Gtk.CornerType.BOTTOM_RIGHT };
- private const Gtk.CornerType[] bottom_corners = { Gtk.CornerType.BOTTOM_LEFT,
Gtk.CornerType.BOTTOM_RIGHT };
-
private const double EMBLEM_SCALE = 0.125;
private const double ICON_SCALE = 0.75;
@@ -266,13 +263,12 @@ private class Games.GameThumbnail: Gtk.DrawingArea {
Application.try_make_dir (Application.get_covers_cache_dir (size));
var now = new GLib.DateTime.now_local ();
- var creation_time = now.to_string ();
try {
var cover_cache_path = get_cover_cache_path (size);
cover_cache.save (cover_cache_path, "png",
"tEXt::Software", "GNOME Games",
- "tEXt::Creation Time", creation_time.to_string (),
+ "tEXt::Creation Time", now.to_string (),
null);
}
catch (Error e) {
@@ -282,9 +278,6 @@ private class Games.GameThumbnail: Gtk.DrawingArea {
private string get_cover_cache_path (int size) throws Error {
var dir = Application.get_covers_cache_dir (size);
-
- assert (uid != null);
-
var uid = uid.get_uid ();
return @"$dir/$uid.png";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]