[cheese: 17/19] Remove unused Cheese.MainWindow.get_data_file_dir
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese: 17/19] Remove unused Cheese.MainWindow.get_data_file_dir
- Date: Mon, 17 Jun 2013 22:04:15 +0000 (UTC)
commit ff4f59148b367952b951e4cc400593b934e177c7
Author: David King <amigadave amigadave com>
Date: Mon Jun 17 22:24:57 2013 +0100
Remove unused Cheese.MainWindow.get_data_file_dir
src/cheese-window.vala | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 595e9e5..fdca413 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -349,33 +349,6 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
}
/**
- * Search system directories for the given filename, starting
- * with the in-installation-time custom prefix first.
- *
- * @param filename the file whose path will be searched.
- * @return the system path for the given filename.
- */
- private string get_data_file_dir (string filename) {
- var system_data_dirs = Environment.get_system_data_dirs ();
- string[] data_dirs = {};
- data_dirs += Config.DATADIR;
-
- foreach (var dir in system_data_dirs)
- data_dirs += dir;
-
- foreach (var dir in data_dirs) {
- var absolute_path = GLib.Path.build_filename (dir, Config.PACKAGE_TARNAME,
- filename);
- if (FileUtils.test (absolute_path, FileTest.EXISTS))
- return absolute_path;
- };
-
- // Filename could not be found!
- error ("Data file ā%sā could not be found in system data directories.",
- filename);
- }
-
- /**
* Save the selected file in the thumbview to an alternate storage location.
*
* A file chooser dialog is shown to the user, asking where the file should
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]