[chronojump] Clean warnings



commit 2b0ad5381f82410e2ea14772710e4c78e4973969
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Dec 20 12:09:43 2021 +0100

    Clean warnings

 src/chronojumpImporter.cs     | 5 +----
 src/gui/chronojumpImporter.cs | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/chronojumpImporter.cs b/src/chronojumpImporter.cs
index 9d54de07c..09c6c85d0 100644
--- a/src/chronojumpImporter.cs
+++ b/src/chronojumpImporter.cs
@@ -53,8 +53,6 @@ class ChronojumpImporter
 
        Preferences.pythonVersionEnum pythonVersion;
 
-       Gtk.Window parentWindow;
-
        // Result struct holds the output, error and success operations. It's used to pass
        // errors from different layers (e.g. executing Python scripts) to the UI layer
        public struct Result
@@ -73,10 +71,9 @@ class ChronojumpImporter
 
        // ChronojumpImporter class imports a specific session from sourceFile to destinationFile.
        // The main method is "import()" which does all the work.
-       public ChronojumpImporter(Gtk.Window parentWindow, string sourceFile, string destinationFile,
+       public ChronojumpImporter(string sourceFile, string destinationFile,
                        int sourceSession, int destinationSession, bool debugToFile, 
Preferences.pythonVersionEnum pythonVersion)
        {
-               this.parentWindow = parentWindow;
                this.sourceFile = sourceFile;
                this.destinationFile = destinationFile;
                this.sourceSession = sourceSession;
diff --git a/src/gui/chronojumpImporter.cs b/src/gui/chronojumpImporter.cs
index 399b95d43..2c30937ea 100644
--- a/src/gui/chronojumpImporter.cs
+++ b/src/gui/chronojumpImporter.cs
@@ -62,7 +62,7 @@ public partial class ChronoJumpWindow
                else
                        destinationSessionId = destinationSession.UniqueID;
 
-               chronojumpImporter = new ChronojumpImporter (app1, source_filename, destination_filename, 
sourceSession, destinationSessionId,
+               chronojumpImporter = new ChronojumpImporter (source_filename, destination_filename, 
sourceSession, destinationSessionId,
                                preferences.debugMode, preferences.importerPythonVersion);
 
                if(destinationSessionId == 0)


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