From f10a4616834d20166457507b527eab29fe689a68 Mon Sep 17 00:00:00 2001 From: Peter Forstmeier Date: Wed, 25 Jun 2014 20:12:59 +0200 Subject: [PATCH] Cleanup - FxCop --- .../src/DesignableItems/BaseLineItem.cs | 16 +-------------- .../src/DesignableItems/BaseRectangleItem.cs | 20 +++++++++---------- .../src/Services/HelpService.cs | 16 +++++++-------- .../TypeProvider/AbstractItemTypeProvider.cs | 6 +++--- .../Src/Globals/GlobalEnums.cs | 2 +- 5 files changed, 23 insertions(+), 37 deletions(-) diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs index db2dd66f2d..4203d0e578 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs @@ -22,9 +22,8 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems Point toPoint; LineCap startLineCap; LineCap endLineCap; - DashCap dashLineCap; + - public BaseLineItem() { this.Size = new Size(50,10); @@ -42,8 +41,6 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems } - -// [System.ComponentModel.EditorBrowsableAttribute()] protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { e.Graphics.SmoothingMode = SmoothingMode.HighQuality; @@ -113,16 +110,5 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems Invalidate(); } } - - -// [Category("Appearance")] -// public DashCap DashLineCap { -// get { return dashLineCap; } -// set { -// dashLineCap = value; -// Invalidate(); -// } -// } - } } diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs index b7be7d2627..c7581fa93b 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs @@ -146,17 +146,17 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems public static GraphicsPath Create(Rectangle rect, int radius, RectangleCorners c) { return Create(rect.X, rect.Y, rect.Width, rect.Height, radius, c); } +// +// public static GraphicsPath Create(int x, int y, int width, int height, int radius) +// { return Create(x, y, width, height, radius, RectangleCorners.All); } - public static GraphicsPath Create(int x, int y, int width, int height, int radius) - { return Create(x, y, width, height, radius, RectangleCorners.All); } +// public static GraphicsPath Create(Rectangle rect, int radius) +// { return Create(rect.X, rect.Y, rect.Width, rect.Height, radius); } +// +// public static GraphicsPath Create(int x, int y, int width, int height) +// { return Create(x, y, width, height, 5); } - public static GraphicsPath Create(Rectangle rect, int radius) - { return Create(rect.X, rect.Y, rect.Width, rect.Height, radius); } - - public static GraphicsPath Create(int x, int y, int width, int height) - { return Create(x, y, width, height, 5); } - - public static GraphicsPath Create(Rectangle rect) - { return Create(rect.X, rect.Y, rect.Width, rect.Height); } +// public static GraphicsPath Create(Rectangle rect) +// { return Create(rect.X, rect.Y, rect.Width, rect.Height); } } } diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs index d83aa841ef..089ca9c53d 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs @@ -60,14 +60,14 @@ namespace ICSharpCode.Reporting.Addin.Services { HelpProvider.ShowHelpByKeyword(helpKeyword); } - public void ShowGeneralHelp() - { - ShowHelpFromKeyword(generalKeyword); - } - static public void ShowHelp() - { -// HelpProvider.ShowHelp(f1Keyword); - } +// public void ShowGeneralHelp() +// { +// ShowHelpFromKeyword(generalKeyword); +// } +// static public void ShowHelp() +// { +//// HelpProvider.ShowHelp(f1Keyword); +// } public void ShowHelpFromUrl(string helpUrl) { diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs index 28665d5d2c..1a3175bfd2 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs @@ -22,9 +22,9 @@ namespace ICSharpCode.Reporting.Addin.TypeProvider { } - public AbstractItemTypeProvider(TypeDescriptionProvider parent): base(parent) - { - } +// public AbstractItemTypeProvider(TypeDescriptionProvider parent): base(parent) +// { +// } public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs index cecd76a3ec..accba07f91 100644 --- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs +++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs @@ -25,7 +25,7 @@ namespace ICSharpCode.Reporting.Globals /// public sealed class GlobalEnums { - GlobalEnums() { + private GlobalEnums() { } public enum ReportSection {