[pitivi] previewers: Remove unnecessary ThumbnailCache._filename attribute
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] previewers: Remove unnecessary ThumbnailCache._filename attribute
- Date: Tue, 31 Jan 2017 22:36:24 +0000 (UTC)
commit f936b00191337f8ed3c999d699c1fecb6de37502
Author: Suhas Nayak <suhas2go gmail com>
Date: Wed Feb 1 03:35:29 2017 +0530
previewers: Remove unnecessary ThumbnailCache._filename attribute
The _filename attribute is only used for a needless debug statement
Differential Revision: https://phabricator.freedesktop.org/D1631
pitivi/timeline/previewers.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 85c196e..c7113c5 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -36,7 +36,6 @@ from pitivi.settings import get_dir
from pitivi.settings import xdg_cache_home
from pitivi.utils.loggable import Loggable
from pitivi.utils.misc import binary_search
-from pitivi.utils.misc import filename_from_uri
from pitivi.utils.misc import get_proxy_target
from pitivi.utils.misc import hash_file
from pitivi.utils.misc import path_from_uri
@@ -708,7 +707,6 @@ class ThumbnailCache(Loggable):
def __init__(self, uri):
Loggable.__init__(self)
self._filehash = hash_file(Gst.uri_get_location(uri))
- self._filename = filename_from_uri(uri)
thumbs_cache_dir = get_dir(os.path.join(xdg_cache_home(), "thumbs"))
self._dbfile = os.path.join(thumbs_cache_dir, self._filehash)
self._db = sqlite3.connect(self._dbfile)
@@ -811,8 +809,6 @@ class ThumbnailCache(Loggable):
def commit(self):
"""Saves the cache on disk (in the database)."""
- self.debug(
- 'Saving thumbnail cache file to disk for: %s', self._filename)
self._db.commit()
self.log("Saved thumbnail cache file: %s" % self._filehash)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]