Author: mkestner
Date: 2006-04-25 17:33:08 -0400 (Tue, 25 Apr 2006)
New Revision: 59875
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Mime.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SaveFileDialog.cs
Log:
2006-04-25 Mike Kestner <[EMAIL PROTECTED]>
* *.cs: cleanup newly reported exception var unused warnings.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-04-25 21:02:14 UTC (rev 59874)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-04-25 21:33:08 UTC (rev 59875)
@@ -1,3 +1,7 @@
+2006-04-25 Mike Kestner <[EMAIL PROTECTED]>
+
+ * *.cs: cleanup newly reported exception var unused warnings.
+
2006-04-25 Alexander Olk <[EMAIL PROTECTED]>
* ThemeWin32Classic.cs: Button image alignment now matches exactly
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -1975,7 +1975,7 @@
cached_currencymgr = cached_currencymgr_events = null;
try {
real_datasource = GetDataSource (datasource,
DataMember);
- }catch (Exception e) {
+ }catch (Exception) {
real_datasource = source;
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -147,7 +147,7 @@
SetColumnValueAtRow (dataSource, rowNum, text);
}
- catch (Exception e) {
+ catch (Exception) {
string message = "The data entered in column
["+ MappingName +"] has an invalid format.";
MessageBox.Show( message);
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -1248,7 +1248,7 @@
try {
xml_doc.Save
(recently_used_path);
- } catch ( Exception e ) {
+ } catch (Exception) {
}
}
} else {
@@ -1292,7 +1292,7 @@
try {
xml_doc.Save
(recently_used_path);
- } catch ( Exception e ) {
+ } catch (Exception) {
}
}
}
@@ -2062,7 +2062,7 @@
try {
if (fileInfo.Length > 1024)
fileLen = fileInfo.Length / 1024;
- } catch ( Exception e ) {
+ } catch (Exception) {
fileLen = 1;
}
@@ -2100,7 +2100,7 @@
}
}
xtr.Close ();
- } catch ( Exception e ) {
+ } catch (Exception) {
}
}
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Mime.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Mime.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Mime.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -702,7 +702,7 @@
file_stream.Close( );
}
- catch (Exception e)
+ catch (Exception)
{
return false;
}
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -815,7 +815,7 @@
icon_theme = "gnome";
return false;
}
- } catch ( Exception e ) {
+ } catch (Exception) {
return false;
}
}
@@ -888,7 +888,7 @@
}
sr.Close ();
- } catch (Exception e) {
+ } catch (Exception) {
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -327,7 +327,7 @@
}
}
- catch (Exception ex) {
+ catch (Exception) {
}
}
}
@@ -362,7 +362,7 @@
}
}
- catch (Exception e) {
+ catch (Exception) {
}
if (grid_item == property_grid.SelectedGridItem
&& grid_item.GridItemType != GridItemType.Category) {
grid_textbox.SetBounds(xLoc, rect.Top,
ClientRectangle.Width-xLoc - (vbar.Visible ? vbar.Width: 0),ROW_HEIGHT);
@@ -418,7 +418,7 @@
System.Console.WriteLine("No converter for type {0}",desc.PropertyType);
}
}
- catch (Exception ex) {
+ catch (Exception) {
Console.WriteLine("Error
converting string");
}
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SaveFileDialog.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SaveFileDialog.cs
2006-04-25 21:02:14 UTC (rev 59874)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SaveFileDialog.cs
2006-04-25 21:33:08 UTC (rev 59875)
@@ -83,7 +83,7 @@
try {
retValue = new FileStream (FileName,
FileMode.Create, FileAccess.ReadWrite);
- } catch (Exception ex) {
+ } catch (Exception) {
retValue = null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches