diff --git a/OpenRA.Game/Graphics/IGraphicsDevice.cs b/OpenRA.Game/Graphics/IGraphicsDevice.cs index 5c89effca3..17593a24bb 100644 --- a/OpenRA.Game/Graphics/IGraphicsDevice.cs +++ b/OpenRA.Game/Graphics/IGraphicsDevice.cs @@ -64,7 +64,6 @@ namespace OpenRA bool SetClipboardText(string text); void DrawPrimitives(PrimitiveType type, int firstVertex, int numVertices); - void SetLineWidth(float width); void EnableScissor(int left, int top, int width, int height); void DisableScissor(); diff --git a/OpenRA.Game/Renderer.cs b/OpenRA.Game/Renderer.cs index 232a13e48f..157362adc6 100644 --- a/OpenRA.Game/Renderer.cs +++ b/OpenRA.Game/Renderer.cs @@ -173,11 +173,6 @@ namespace OpenRA CurrentBatchRenderer = null; } - public void SetLineWidth(float width) - { - Device.SetLineWidth(width); - } - public Size Resolution { get { return Device.WindowSize; } } public interface IBatchRenderer { void Flush(); } diff --git a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs index 60dd8e72d3..f438e209df 100644 --- a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs +++ b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs @@ -331,13 +331,6 @@ namespace OpenRA.Platforms.Default ErrorHandler.CheckGlError(); } - public void SetLineWidth(float width) - { - VerifyThreadAffinity(); - GL.LineWidth(width); - ErrorHandler.CheckGlError(); - } - public Bitmap TakeScreenshot() { var rect = new Rectangle(Point.Empty, WindowSize); diff --git a/OpenRA.Platforms.Null/NullGraphicsDevice.cs b/OpenRA.Platforms.Null/NullGraphicsDevice.cs index 401310bf4e..6c10eb6f41 100644 --- a/OpenRA.Platforms.Null/NullGraphicsDevice.cs +++ b/OpenRA.Platforms.Null/NullGraphicsDevice.cs @@ -50,7 +50,6 @@ namespace OpenRA.Platforms.Null } public void DrawPrimitives(PrimitiveType pt, int firstVertex, int numVertices) { } - public void SetLineWidth(float width) { } public IVertexBuffer CreateVertexBuffer(int size) { return new NullVertexBuffer(); } public ITexture CreateTexture() { return new NullTexture(); }