muine r1187 - in trunk: . src
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: muine r1187 - in trunk: . src
- Date: Fri, 4 Jul 2008 15:16:16 +0000 (UTC)
Author: wbolster
Date: Fri Jul 4 15:16:15 2008
New Revision: 1187
URL: http://svn.gnome.org/viewvc/muine?rev=1187&view=rev
Log:
2008-07-04 Wouter Bolsterlee <wbolster svn gnome org>
* src/CoverGetter.cs:
* src/SongDatabase.cs:
Don't assign error variables if they're not used anyway.
This silences a few compiler warnings.
Modified:
trunk/ChangeLog
trunk/src/CoverGetter.cs
trunk/src/SongDatabase.cs
Modified: trunk/src/CoverGetter.cs
==============================================================================
--- trunk/src/CoverGetter.cs (original)
+++ trunk/src/CoverGetter.cs Fri Jul 4 15:16:15 2008
@@ -415,7 +415,7 @@
pix = Download (uri);
}
- } catch (DllNotFoundException e) {
+ } catch (DllNotFoundException) {
// We catch this exception so we can always include the
// musicbrainz support but not have a strict compile/runtime
// requirement on it.
@@ -606,10 +606,10 @@
pix = Download (url);
}
- } catch (WebException e) {
+ } catch (WebException) {
throw;
- } catch (Exception e) {
+ } catch (Exception) {
pix = null;
}
@@ -1034,13 +1034,13 @@
try {
pixbuf = getter.DownloadFromAmazon (album);
- } catch (WebException e) {
+ } catch (WebException) {
// Temporary web problem (Timeout etc.) - re-queue
Thread.Sleep (60000); // wait for a minute first
queue.Enqueue (album);
continue;
- } catch (Exception e) {
+ } catch (Exception) {
}
string key = album.Key;
Modified: trunk/src/SongDatabase.cs
==============================================================================
--- trunk/src/SongDatabase.cs (original)
+++ trunk/src/SongDatabase.cs Fri Jul 4 15:16:15 2008
@@ -121,7 +121,7 @@
rq = StartAddSong (song);
HandleSignalRequest (rq);
- } catch (InvalidOperationException e) {
+ } catch (InvalidOperationException) {
return;
}
}
@@ -135,7 +135,7 @@
rq = StartSyncSong (song, metadata);
HandleSignalRequest (rq);
- } catch (InvalidOperationException e) {
+ } catch (InvalidOperationException) {
return;
}
}
@@ -155,7 +155,7 @@
rq = StartRemoveSong (song);
HandleSignalRequest (rq);
- } catch (InvalidOperationException e) {
+ } catch (InvalidOperationException) {
return;
}
}
@@ -257,7 +257,7 @@
try {
Songs.Add (song.Filename, song);
- } catch (ArgumentException e) { // already exists
+ } catch (ArgumentException) { // already exists
throw new InvalidOperationException ();
}
@@ -459,7 +459,7 @@
SignalRequest rq;
try {
rq = StartAddSong (song);
- } catch (InvalidOperationException e) {
+ } catch (InvalidOperationException) {
continue;
}
@@ -787,8 +787,7 @@
} catch {
try {
rq = Global.DB.StartRemoveSong (song);
-
- } catch (InvalidOperationException e) {
+ } catch (InvalidOperationException) {
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]