Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit f10a461

Browse files
Cleanup - FxCop
1 parent dae26c3 commit f10a461

5 files changed

Lines changed: 23 additions & 37 deletions

File tree

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ public class BaseLineItem:AbstractGraphicItem
2222
Point toPoint;
2323
LineCap startLineCap;
2424
LineCap endLineCap;
25-
DashCap dashLineCap;
25+
2626

27-
2827
public BaseLineItem()
2928
{
3029
this.Size = new Size(50,10);
@@ -42,8 +41,6 @@ void SetStartEndPoint ()
4241
}
4342

4443

45-
46-
// [System.ComponentModel.EditorBrowsableAttribute()]
4744
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
4845
{
4946
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
@@ -113,16 +110,5 @@ public LineCap EndLineCap {
113110
Invalidate();
114111
}
115112
}
116-
117-
118-
// [Category("Appearance")]
119-
// public DashCap DashLineCap {
120-
// get { return dashLineCap; }
121-
// set {
122-
// dashLineCap = value;
123-
// Invalidate();
124-
// }
125-
// }
126-
127113
}
128114
}

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,17 @@ public static GraphicsPath Create(int x, int y, int width, int height,
146146

147147
public static GraphicsPath Create(Rectangle rect, int radius, RectangleCorners c)
148148
{ return Create(rect.X, rect.Y, rect.Width, rect.Height, radius, c); }
149+
//
150+
// public static GraphicsPath Create(int x, int y, int width, int height, int radius)
151+
// { return Create(x, y, width, height, radius, RectangleCorners.All); }
149152

150-
public static GraphicsPath Create(int x, int y, int width, int height, int radius)
151-
{ return Create(x, y, width, height, radius, RectangleCorners.All); }
153+
// public static GraphicsPath Create(Rectangle rect, int radius)
154+
// { return Create(rect.X, rect.Y, rect.Width, rect.Height, radius); }
155+
//
156+
// public static GraphicsPath Create(int x, int y, int width, int height)
157+
// { return Create(x, y, width, height, 5); }
152158

153-
public static GraphicsPath Create(Rectangle rect, int radius)
154-
{ return Create(rect.X, rect.Y, rect.Width, rect.Height, radius); }
155-
156-
public static GraphicsPath Create(int x, int y, int width, int height)
157-
{ return Create(x, y, width, height, 5); }
158-
159-
public static GraphicsPath Create(Rectangle rect)
160-
{ return Create(rect.X, rect.Y, rect.Width, rect.Height); }
159+
// public static GraphicsPath Create(Rectangle rect)
160+
// { return Create(rect.X, rect.Y, rect.Width, rect.Height); }
161161
}
162162
}

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ public void ShowHelpFromKeyword(string helpKeyword)
6060
{
6161
HelpProvider.ShowHelpByKeyword(helpKeyword);
6262
}
63-
public void ShowGeneralHelp()
64-
{
65-
ShowHelpFromKeyword(generalKeyword);
66-
}
67-
static public void ShowHelp()
68-
{
69-
// HelpProvider.ShowHelp(f1Keyword);
70-
}
63+
// public void ShowGeneralHelp()
64+
// {
65+
// ShowHelpFromKeyword(generalKeyword);
66+
// }
67+
// static public void ShowHelp()
68+
// {
69+
//// HelpProvider.ShowHelp(f1Keyword);
70+
// }
7171

7272
public void ShowHelpFromUrl(string helpUrl)
7373
{

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public AbstractItemTypeProvider() : base(TypeDescriptor.GetProvider(typeof(Abst
2222
{
2323
}
2424

25-
public AbstractItemTypeProvider(TypeDescriptionProvider parent): base(parent)
26-
{
27-
}
25+
// public AbstractItemTypeProvider(TypeDescriptionProvider parent): base(parent)
26+
// {
27+
// }
2828

2929

3030
public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)

src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace ICSharpCode.Reporting.Globals
2525
/// </summary>
2626
public sealed class GlobalEnums
2727
{
28-
GlobalEnums() {
28+
private GlobalEnums() {
2929
}
3030

3131
public enum ReportSection {

0 commit comments

Comments
 (0)