controller: remove obsolete event

This commit is contained in:
Hylke Bons 2012-02-06 14:53:02 +01:00
parent e50ad79f92
commit 0e3813c7ba
2 changed files with 2 additions and 10 deletions

View file

@ -40,9 +40,6 @@ namespace SparkleShare {
public double ProgressPercentage = 0.0;
public string ProgressSpeed = "";
public event OnQuitWhileSyncingHandler OnQuitWhileSyncing;
public delegate void OnQuitWhileSyncingHandler ();
public event FolderFetchedEventHandler FolderFetched;
public delegate void FolderFetchedEventHandler (string [] warnings);
@ -776,6 +773,7 @@ namespace SparkleShare {
process.StartInfo.UseShellExecute = false;
process.StartInfo.FileName = "ssh-add";
process.StartInfo.Arguments = "\"" + key_file_path + "\"";
process.StartInfo.CreateNoWindow = true;
process.Start ();
process.WaitForExit ();
@ -1107,9 +1105,6 @@ namespace SparkleShare {
repo.Status == SyncStatus.SyncDown ||
repo.IsBuffering) {
if (OnQuitWhileSyncing != null)
OnQuitWhileSyncing ();
return;
}
}

View file

@ -63,12 +63,9 @@ namespace SparkleShare {
Setup = new SparkleSetup ();
Setup.Controller.ShowSetupPage ();
}
Program.Controller.OnQuitWhileSyncing += delegate {
// TODO: Pop up a warning when quitting whilst syncing
};
}
// Runs the application
public void Run ()
{