[latexila] Build tool runner: remove check for allowed file's extensions
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Build tool runner: remove check for allowed file's extensions
- Date: Wed, 11 Jul 2012 01:08:50 +0000 (UTC)
commit e2396a1491e9d16562d964b8465b65aee1060946
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Wed Jul 11 03:07:27 2012 +0200
Build tool runner: remove check for allowed file's extensions
Because this is already done for setting the sensitivity of the
Gtk.Action.
src/build_tool_runner.vala | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/build_tool_runner.vala b/src/build_tool_runner.vala
index 7768678..2682cb6 100644
--- a/src/build_tool_runner.vala
+++ b/src/build_tool_runner.vala
@@ -42,12 +42,6 @@ public class BuildToolRunner : GLib.Object
_on_file = on_file;
_view = build_view;
- if (! match_allowed_extensions ())
- {
- warning ("Build tool runner: bad file extension");
- return;
- }
-
_view.clear ();
_main_title = _view.add_main_title (_tool.label, BuildState.RUNNING);
@@ -67,19 +61,6 @@ public class BuildToolRunner : GLib.Object
finished ();
}
- private bool match_allowed_extensions ()
- {
- string[] allowed_extensions = _tool.extensions.split (" ");
-
- if (allowed_extensions.length == 0)
- return true;
-
- string filename = _on_file.get_parse_name ();
- string extension = Utils.get_extension (filename);
-
- return extension in allowed_extensions;
- }
-
private void proceed ()
{
// All jobs executed, finished.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]