Browse Source

boatload of corcompare virtual cleanup

svn path=/trunk/mcs/; revision=58683
Mike Kestner 20 years ago
parent
commit
2b31e27b21

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/AxHost.cs

@@ -432,7 +432,7 @@ namespace System.Windows.Forms {
 		}
 
 		[EditorBrowsable(EditorBrowsableState.Advanced)]
-		public virtual void EndInit() {
+		public void EndInit() {
 			throw new NotImplementedException("COM/ActiveX support is not implemented");
 		}
 

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs

@@ -51,7 +51,7 @@ namespace System.Windows.Forms {
 
 		#region Public Instance Properties
 		[DefaultValue(DialogResult.None)]
-		public DialogResult DialogResult {		// IButtonControl
+		public virtual DialogResult DialogResult {		// IButtonControl
 			get {
 				return dialog_result;
 			}

+ 10 - 10
mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckedListBox.cs

@@ -407,11 +407,11 @@ namespace System.Windows.Forms
 			}
 
 			#region Public Properties
-			public virtual int Count {
+			public int Count {
 				get { return indices.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return true;}
 			}
 
@@ -445,12 +445,12 @@ namespace System.Windows.Forms
 			}
 
 
-			public virtual void CopyTo (Array dest, int index)
+			public void CopyTo (Array dest, int index)
 			{
 				indices.CopyTo (dest, index);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return indices.GetEnumerator ();
 			}
@@ -546,17 +546,17 @@ namespace System.Windows.Forms
 			}
 
 			#region Public Properties
-			public virtual int Count {
+			public int Count {
 				get { return object_items.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return true; }
 			}
 
 			[Browsable (false)]
 			[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
-			public virtual object this [int index] {
+			public object this [int index] {
 				get {
 					if (index < 0 || index >= Count)
 						throw new ArgumentOutOfRangeException ("Index of out range");
@@ -586,12 +586,12 @@ namespace System.Windows.Forms
 			#endregion Public Properties
 
 			#region Public Methods
-			public virtual bool Contains (object selectedObject)
+			public bool Contains (object selectedObject)
 			{
 				return object_items.Contains (selectedObject);
 			}
 
-			public virtual void CopyTo (Array dest, int index)
+			public void CopyTo (Array dest, int index)
 			{
 				object_items.CopyTo (dest, index);
 			}
@@ -631,7 +631,7 @@ namespace System.Windows.Forms
 				return object_items.IndexOf (item);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return object_items.GetEnumerator ();
 			}

+ 9 - 9
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs

@@ -1245,11 +1245,11 @@ namespace System.Windows.Forms
 			}
 
 			#region Public Properties
-			public virtual int Count {
+			public int Count {
 				get { return object_items.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return false; }
 			}
 
@@ -1318,7 +1318,7 @@ namespace System.Windows.Forms
 				owner.UpdatedItems ();
 			}
 
-			public virtual void Clear ()
+			public void Clear ()
 			{
 				owner.selected_index = -1;
 				object_items.Clear ();
@@ -1327,7 +1327,7 @@ namespace System.Windows.Forms
 				owner.Refresh ();
 			}
 			
-			public virtual bool Contains (object obj)
+			public bool Contains (object obj)
 			{
 				return object_items.Contains (obj);
 			}
@@ -1342,7 +1342,7 @@ namespace System.Windows.Forms
 				object_items.CopyTo (dest, index);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return object_items.GetEnumerator ();
 			}
@@ -1352,12 +1352,12 @@ namespace System.Windows.Forms
 				return Add (item);
 			}
 
-			public virtual int IndexOf (object value)
+			public int IndexOf (object value)
 			{
 				return object_items.IndexOf (value);
 			}
 
-			public virtual void Insert (int index,  object item)
+			public void Insert (int index,  object item)
 			{
 				if (index < 0 || index > Count)
 					throw new ArgumentOutOfRangeException ("Index of out range");					
@@ -1389,7 +1389,7 @@ namespace System.Windows.Forms
 				owner.EndUpdate ();	// Calls UpdatedItems
 			}
 
-			public virtual void Remove (object value)
+			public void Remove (object value)
 			{				
 				if (IndexOf (value) == owner.SelectedIndex)
 					owner.SelectedItem = null;
@@ -1398,7 +1398,7 @@ namespace System.Windows.Forms
 				
 			}
 
-			public virtual void RemoveAt (int index)
+			public void RemoveAt (int index)
 			{
 				if (index < 0 || index >= Count)
 					throw new ArgumentOutOfRangeException ("Index of out range");

+ 2 - 2
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

@@ -284,7 +284,7 @@ namespace System.Windows.Forms
 				}
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get {
 					return list.IsReadOnly;
 				}
@@ -445,7 +445,7 @@ namespace System.Windows.Forms
 				return Contains (value) || ImplicitContains (value);
 			}
 
-			public virtual void CopyTo (Array array, int index)
+			public void CopyTo (Array array, int index)
 			{
 				list.CopyTo(array, index);
 			}

+ 1 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/HelpProvider.cs

@@ -120,7 +120,7 @@ namespace System.Windows.Forms {
 		#endregion	// Public Instance Properties
 
 		#region Public Instance Methods
-		public bool CanExtend(object extendee) {
+		public virtual bool CanExtend(object extendee) {
 			if (!(extendee is Control)) {
 				return false;
 			}

+ 18 - 18
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs

@@ -1890,11 +1890,11 @@ namespace System.Windows.Forms
 			}
 
 			#region Public Properties
-			public virtual int Count {
+			public int Count {
 				get { return object_items.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return false; }
 			}
 
@@ -1993,7 +1993,7 @@ namespace System.Windows.Forms
 				listbox_items.Clear ();				
 				owner.UpdateItemInfo (UpdateOperation.AllItems, 0, 0);
 			}
-			public virtual bool Contains (object obj)
+			public bool Contains (object obj)
 			{
 				return object_items.Contains (obj);
 			}
@@ -2008,7 +2008,7 @@ namespace System.Windows.Forms
 				object_items.CopyTo (dest, index);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return object_items.GetEnumerator ();
 			}
@@ -2018,12 +2018,12 @@ namespace System.Windows.Forms
 				return Add (item);
 			}
 
-			public virtual int IndexOf (object value)
+			public int IndexOf (object value)
 			{
 				return object_items.IndexOf (value);
 			}
 
-			public virtual void Insert (int index,  object item)
+			public void Insert (int index,  object item)
 			{
 				if (index < 0 || index > Count)
 					throw new ArgumentOutOfRangeException ("Index of out range");
@@ -2051,12 +2051,12 @@ namespace System.Windows.Forms
 				owner.EndUpdate ();	// Calls UpdateItemInfo
 			}
 
-			public virtual void Remove (object value)
+			public void Remove (object value)
 			{				
 				RemoveAt (IndexOf (value));				
 			}
 
-			public virtual void RemoveAt (int index)
+			public void RemoveAt (int index)
 			{
 				if (index < 0 || index >= Count)
 					throw new ArgumentOutOfRangeException ("Index of out range");
@@ -2122,11 +2122,11 @@ namespace System.Windows.Forms
 
 			#region Public Properties
 			[Browsable (false)]
-			public virtual int Count {
+			public int Count {
 				get { return indices.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return true; }
 			}
 
@@ -2159,12 +2159,12 @@ namespace System.Windows.Forms
 				return indices.Contains (selectedIndex);
 			}
 
-			public virtual void CopyTo (Array dest, int index)
+			public void CopyTo (Array dest, int index)
 			{
 				indices.CopyTo (dest, index);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return indices.GetEnumerator ();
 			}
@@ -2261,17 +2261,17 @@ namespace System.Windows.Forms
 			}
 
 			#region Public Properties
-			public virtual int Count {
+			public int Count {
 				get { return object_items.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return true; }
 			}
 
 			[Browsable(false)]
 			[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
-			public virtual object this [int index] {
+			public object this [int index] {
 				get {
 					if (index < 0 || index >= Count)
 						throw new ArgumentOutOfRangeException ("Index of out range");
@@ -2301,12 +2301,12 @@ namespace System.Windows.Forms
 			#endregion Public Properties
 
 			#region Public Methods
-			public virtual bool Contains (object selectedObject)
+			public bool Contains (object selectedObject)
 			{
 				return object_items.Contains (selectedObject);
 			}
 
-			public virtual void CopyTo (Array dest, int index)
+			public void CopyTo (Array dest, int index)
 			{
 				object_items.CopyTo (dest, index);
 			}
@@ -2346,7 +2346,7 @@ namespace System.Windows.Forms
 				return object_items.IndexOf (item);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return object_items.GetEnumerator ();
 			}

+ 3 - 3
mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBar.cs

@@ -466,7 +466,7 @@ namespace System.Windows.Forms {
 			#region Public Instance Properties
 			[Browsable(false)]
 			[EditorBrowsable(EditorBrowsableState.Never)]
-			public virtual int Count {
+			public int Count {
 				get {
 					if (panels == null)
 						return 0;
@@ -474,7 +474,7 @@ namespace System.Windows.Forms {
 				}
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return false; }
 			}
 
@@ -530,7 +530,7 @@ namespace System.Windows.Forms {
 				return panels.Contains (panel);
 			}
 
-			public virtual IEnumerator GetEnumerator () {
+			public IEnumerator GetEnumerator () {
 				return panels.GetEnumerator ();
 			}
 

+ 2 - 2
mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBarPanel.cs

@@ -195,12 +195,12 @@ namespace System.Windows.Forms {
 		{
 		}
 
-		public virtual void BeginInit ()
+		public void BeginInit ()
 		{
 			initializing = true;
 		}
 
-		public virtual void EndInit ()
+		public void EndInit ()
 		{
 			if (!initializing || twidth == -1)
 				return;

+ 4 - 4
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs

@@ -1090,11 +1090,11 @@ namespace System.Windows.Forms {
 			}
 
 			[Browsable(false)]
-			public virtual int Count {
+			public int Count {
 				get { return owner.Controls.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return false; }
 			}
 
@@ -1154,7 +1154,7 @@ namespace System.Windows.Forms {
 				return owner.Controls.Contains (page);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return owner.Controls.GetEnumerator ();
 			}
@@ -1169,7 +1169,7 @@ namespace System.Windows.Forms {
 				owner.Controls.Remove (page);
 			}
 
-			public virtual void RemoveAt (int index)
+			public void RemoveAt (int index)
 			{
 				owner.Controls.RemoveAt (index);
 			}

+ 5 - 5
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBar.cs

@@ -734,11 +734,11 @@ namespace System.Windows.Forms
 
 			#region properties
 			[Browsable (false)]
-			public virtual int Count {
+			public int Count {
 				get { return list.Count; }
 			}
 
-			public virtual bool IsReadOnly {
+			public bool IsReadOnly {
 				get { return list.IsReadOnly; }
 			}
 
@@ -795,7 +795,7 @@ namespace System.Windows.Forms
 					Add (button);
 			}
 
-			public virtual void Clear ()
+			public void Clear ()
 			{
 				list.Clear ();
 				owner.Redraw (false);
@@ -806,7 +806,7 @@ namespace System.Windows.Forms
 				return list.Contains (button);
 			}
 
-			public virtual IEnumerator GetEnumerator ()
+			public IEnumerator GetEnumerator ()
 			{
 				return list.GetEnumerator ();
 			}
@@ -878,7 +878,7 @@ namespace System.Windows.Forms
 				owner.Redraw (true);
 			}
 
-			public virtual void RemoveAt (int index)
+			public void RemoveAt (int index)
 			{
 				list.RemoveAt (index);
 				owner.Redraw (true);

+ 2 - 2
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TrackBar.cs

@@ -361,7 +361,7 @@ namespace System.Windows.Forms
 
 		#region Public Methods
 
-		public virtual void BeginInit ()		
+		public void BeginInit ()		
 		{
 
 		}
@@ -372,7 +372,7 @@ namespace System.Windows.Forms
 		}
 
 
-		public virtual void EndInit ()		
+		public void EndInit ()		
 		{
 
 		}

+ 4 - 4
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNodeCollection.cs

@@ -51,11 +51,11 @@ namespace System.Windows.Forms {
 
 		[Browsable(false)]
 		[EditorBrowsable(EditorBrowsableState.Advanced)]
-		public virtual int Count {
+		public int Count {
 			get { return count; }
 		}
 
-		public virtual bool IsReadOnly {
+		public bool IsReadOnly {
 			get { return false; }
 		}
 
@@ -173,12 +173,12 @@ namespace System.Windows.Forms {
 			return (Array.BinarySearch (nodes, node) > 0);
 		}
 
-		public virtual void CopyTo (Array dest, int index)
+		public void CopyTo (Array dest, int index)
 		{
 			nodes.CopyTo (dest, index);
 		}
 
-		public virtual IEnumerator GetEnumerator ()
+		public IEnumerator GetEnumerator ()
 		{
 			return new TreeNodeEnumerator (this);
 		}