Removed obsolete constructor.
authorJarl Gullberg <jarl.gullberg@gmail.com>
Tue, 20 Jun 2017 13:09:01 +0000 (15:09 +0200)
committerJarl Gullberg <jarl.gullberg@gmail.com>
Thu, 22 Jun 2017 16:34:47 +0000 (18:34 +0200)
src/OpenTK/Graphics/Color4.cs

index 3174d70..9f2d260 100644 (file)
@@ -6,7 +6,7 @@
 //
 // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights to 
+// in the Software without restriction, including without limitation the rights to
 // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 // the Software, and to permit persons to whom the Software is furnished to do
 // so, subject to the following conditions:
@@ -47,17 +47,17 @@ namespace OpenTK.Graphics
         /// The red component of this Color4 structure.
         /// </summary>
         public float R;
-        
+
         /// <summary>
         /// The green component of this Color4 structure.
         /// </summary>
         public float G;
-        
+
         /// <summary>
         /// The blue component of this Color4 structure.
         /// </summary>
         public float B;
-        
+
         /// <summary>
         /// The alpha component of this Color4 structure.
         /// </summary>
@@ -97,15 +97,6 @@ namespace OpenTK.Graphics
             A = a / (float)Byte.MaxValue;
         }
 
-        /// <summary>
-        /// Constructs a new Color4 structure from the specified System.Drawing.Color.
-        /// </summary>
-        /// <param name="color">The System.Drawing.Color containing the component values.</param>
-        [Obsolete("Use new Color4(r, g, b, a) instead.")]
-        public Color4(Color color)
-            : this(color.R, color.G, color.B, color.A)
-        { }
-
         #endregion
 
         #region Public Members
@@ -1276,7 +1267,7 @@ namespace OpenTK.Graphics
             return new Vector4(x, y, z, rgb.A);
         }
 
-        #endregion        
+        #endregion
 
         #region YUV