[latexila] MainWindow: little code clean-up



commit 89a98d964b21913cd909c96642f5c7bc5ef3088d
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Wed Aug 1 16:30:10 2012 +0200

    MainWindow: little code clean-up
    
    Remove dead code, and make some functions private instead of public.

 src/main_window.vala |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index ace884d..d52a14e 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -619,13 +619,13 @@ public class MainWindow : Window
         return process_create_tab (tab, jump_to);
     }
 
-    public DocumentTab? create_tab_from_location (File location, bool jump_to)
+    private DocumentTab? create_tab_from_location (File location, bool jump_to)
     {
         DocumentTab tab = new DocumentTab.from_location (location);
         return process_create_tab (tab, jump_to);
     }
 
-    public void create_tab_with_view (DocumentView view)
+    private void create_tab_with_view (DocumentView view)
     {
         DocumentTab tab = new DocumentTab.with_view (view);
         process_create_tab (tab, true);
@@ -740,18 +740,6 @@ public class MainWindow : Window
         return true;
     }
 
-    public DocumentTab? get_tab_from_location (File location)
-    {
-        foreach (Document doc in get_documents ())
-        {
-            if (location.equal (doc.location))
-                return doc.tab;
-        }
-
-        // not found
-        return null;
-    }
-
     private void sync_name (DocumentTab tab)
     {
         if (tab == active_tab)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]