[f-spot] Remove some unused code in SendEmail.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Remove some unused code in SendEmail.
- Date: Tue, 15 Jun 2010 10:19:48 +0000 (UTC)
commit b27a48531847c99e5113b8812df7427299df4e1c
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue Jun 15 12:19:32 2010 +0200
Remove some unused code in SendEmail.
src/SendEmail.cs | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/SendEmail.cs b/src/SendEmail.cs
index df6bd2c..aae8ffb 100644
--- a/src/SendEmail.cs
+++ b/src/SendEmail.cs
@@ -45,7 +45,6 @@ namespace FSpot
static int NoOfSizes = sizes.Length;
double[] avg_scale = new double [NoOfSizes];
- System.Collections.ArrayList tmp_paths; // temporary resized image file name
string tmp_mail_dir; // To temporary keep the resized images
bool force_original = false;
@@ -241,9 +240,6 @@ namespace FSpot
rotate = rotate_check.Active; // Should we automatically rotate original photos.
Preferences.Set (Preferences.EXPORT_EMAIL_ROTATE, rotate);
-
- // Initiate storage for temporary files to be deleted later
- tmp_paths = new System.Collections.ArrayList();
// Create a tmp directory.
tmp_mail_dir = System.IO.Path.GetTempFileName (); // Create a tmp file
@@ -280,9 +276,6 @@ namespace FSpot
request.Preserve(request.Current);
mail_attach.Append(((i == 0 && attach_arg.ToString () == ",") ? "" : attach_arg.ToString()) + request.Current.ToString ());
-
- // Mark the path for deletion
- tmp_paths.Add (request.Current.LocalPath);
} catch (Exception e) {
Hyena.Log.ErrorFormat ("Error preparing {0}: {1}", selection[i].Name, e.Message);
HigMessageDialog md = new HigMessageDialog (parent_window,
@@ -301,7 +294,6 @@ namespace FSpot
if (progress_dialog != null)
progress_dialog.Destroy (); // No need to keep this window
-
if (!UserCancelled) {
// Send the mail :)
string mail_subject = Catalog.GetString("My Photos");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]