chore(PepLib.Core): remove unused using directives and clean up formatting
Remove unnecessary System, System.Collections.Generic, System.IO, and System.Linq using directives that were flagged by IDE analyzers. Also includes minor whitespace and code style normalization. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public static class AngleConverter
|
public static class AngleConverter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public class Box
|
public class Box
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
namespace PepLib.Data
|
namespace PepLib.Data
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
[Table("Drawing")]
|
[Table("Drawing")]
|
||||||
public partial class Drawing
|
public partial class Drawing
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
namespace PepLib.Data
|
namespace PepLib.Data
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
[Table("NestDetail")]
|
[Table("NestDetail")]
|
||||||
public partial class NestDetail
|
public partial class NestDetail
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
namespace PepLib.Data
|
namespace PepLib.Data
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
[Table("NestDrawing")]
|
[Table("NestDrawing")]
|
||||||
public partial class NestDrawing
|
public partial class NestDrawing
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
namespace PepLib.Data
|
namespace PepLib.Data
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
[Table("NestHeader")]
|
[Table("NestHeader")]
|
||||||
public partial class NestHeader
|
public partial class NestHeader
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
namespace PepLib.Data
|
namespace PepLib.Data
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
[Table("PlateDetail")]
|
[Table("PlateDetail")]
|
||||||
public partial class PlateDetail
|
public partial class PlateDetail
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
namespace PepLib.Data
|
namespace PepLib.Data
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
|
||||||
[Table("PlateHeader")]
|
[Table("PlateHeader")]
|
||||||
public partial class PlateHeader
|
public partial class PlateHeader
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
using PepLib.Codes;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using PepLib.Codes;
|
|
||||||
using PepLib.IO;
|
using PepLib.IO;
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
using PepLib.IO;
|
using PepLib.IO;
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public static class Generic
|
public static class Generic
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
using System.Text;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
using PepLib.Codes;
|
||||||
using System.IO;
|
|
||||||
using PepLib.Codes;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Text;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
using System.Text;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System.IO;
|
using PepLib.Codes;
|
||||||
using PepLib.Codes;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
@@ -70,7 +69,7 @@ namespace PepLib.IO
|
|||||||
if (nextBlock.CodeType() == CodeType.Comment)
|
if (nextBlock.CodeType() == CodeType.Comment)
|
||||||
{
|
{
|
||||||
var comment = nextBlock as Comment;
|
var comment = nextBlock as Comment;
|
||||||
|
|
||||||
if (comment.Value == "DISPLAY ONLY")
|
if (comment.Value == "DISPLAY ONLY")
|
||||||
{
|
{
|
||||||
part.IsDisplayOnly = true;
|
part.IsDisplayOnly = true;
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using PepLib.Codes;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using PepLib.Codes;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
@@ -164,33 +162,33 @@ namespace PepLib.IO
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ':':
|
case ':':
|
||||||
{
|
|
||||||
var value = code.Value.Trim().ToUpper();
|
|
||||||
|
|
||||||
switch (value)
|
|
||||||
{
|
{
|
||||||
case "EXTERNAL LEAD-IN":
|
var value = code.Value.Trim().ToUpper();
|
||||||
type = EntityType.ExternalLeadin;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "EXTERNAL LEAD-OUT":
|
switch (value)
|
||||||
type = EntityType.ExternalLeadout;
|
{
|
||||||
break;
|
case "EXTERNAL LEAD-IN":
|
||||||
|
type = EntityType.ExternalLeadin;
|
||||||
|
break;
|
||||||
|
|
||||||
case "INTERNAL LEAD-IN":
|
case "EXTERNAL LEAD-OUT":
|
||||||
type = EntityType.InternalLeadin;
|
type = EntityType.ExternalLeadout;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "INTERNAL LEAD-OUT":
|
case "INTERNAL LEAD-IN":
|
||||||
type = EntityType.InternalLeadout;
|
type = EntityType.InternalLeadin;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "DISPLAY":
|
case "INTERNAL LEAD-OUT":
|
||||||
type = EntityType.Display;
|
type = EntityType.InternalLeadout;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "DISPLAY":
|
||||||
|
type = EntityType.Display;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
section = CodeSection.Unknown;
|
section = CodeSection.Unknown;
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
using System.Diagnostics;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace PepLib.IO
|
namespace PepLib.IO
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public class IniConfig
|
public class IniConfig
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using PepLib.Codes;
|
||||||
using PepLib.Codes;
|
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public static class MathHelper
|
public static class MathHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
using PepLib.Codes;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using PepLib.Codes;
|
|
||||||
using PepLib.IO;
|
using PepLib.IO;
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public class NestDrawing
|
public class NestDrawing
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using PepLib.IO;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using PepLib.IO;
|
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
using PepLib.IO;
|
||||||
using System.IO;
|
|
||||||
using PepLib.IO;
|
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public class Node
|
public class Node
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public class Part : IMovable
|
public class Part : IMovable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public static class PartListExtensions
|
public static class PartListExtensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public class Plate : IMovable
|
public class Plate : IMovable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
using System.Collections.Generic;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public static class PlateListExtensions
|
public static class PlateListExtensions
|
||||||
{
|
{
|
||||||
public static void JoinLikePlates(this List<Report.Plate> plates)
|
public static void JoinLikePlates(this List<Report.Plate> plates)
|
||||||
{
|
{
|
||||||
START:
|
START:
|
||||||
|
|
||||||
for (int i = 0; i < plates.Count; ++i)
|
for (int i = 0; i < plates.Count; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using PepLib.Codes;
|
||||||
using System.IO;
|
|
||||||
using PepLib.Codes;
|
|
||||||
using PepLib.IO;
|
using PepLib.IO;
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public partial class Report
|
public partial class Report
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using System;
|
using PepLib.IO;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using PepLib.IO;
|
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public static class Tolerance
|
public static class Tolerance
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
using System.Diagnostics;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace PepLib
|
||||||
|
|
||||||
namespace PepLib
|
|
||||||
{
|
{
|
||||||
public struct Vector
|
public struct Vector
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user