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:
AJ
2026-01-14 07:52:17 -05:00
parent a1df56f64c
commit 7c5b4ded5f
39 changed files with 58 additions and 157 deletions

View File

@@ -1,6 +1,4 @@
using System; namespace PepLib
namespace PepLib
{ {
public static class AngleConverter public static class AngleConverter
{ {

View File

@@ -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
{ {

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,6 +1,3 @@
using System;
using System.IO;
using System.Text;
using PepLib.IO; using PepLib.IO;
namespace PepLib namespace PepLib

View File

@@ -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
{ {

View File

@@ -1,6 +1,4 @@
using System; using System.Text;
using System.IO;
using System.Text;
namespace PepLib.IO namespace PepLib.IO
{ {

View File

@@ -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;

View File

@@ -1,6 +1,4 @@
using System; using PepLib.Codes;
using System.IO;
using PepLib.Codes;
namespace PepLib.IO namespace PepLib.IO
{ {

View File

@@ -1,6 +1,4 @@
using System.Collections.Generic; using System.Text;
using System.IO;
using System.Text;
namespace PepLib.IO namespace PepLib.IO
{ {

View File

@@ -1,6 +1,4 @@
using System; using System.Text;
using System.IO;
using System.Text;
namespace PepLib.IO namespace PepLib.IO
{ {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,6 +1,4 @@
using System; using System.Diagnostics;
using System.Diagnostics;
using System.IO;
namespace PepLib.IO namespace PepLib.IO
{ {

View File

@@ -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
{ {

View File

@@ -1,5 +1,4 @@
using System; using PepLib.Codes;
using PepLib.Codes;
namespace PepLib namespace PepLib
{ {

View File

@@ -1,6 +1,4 @@
using System; namespace PepLib
namespace PepLib
{ {
public static class MathHelper public static class MathHelper
{ {

View File

@@ -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

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -1,6 +1,4 @@
using System; using PepLib.IO;
using System.IO;
using PepLib.IO;
namespace PepLib namespace PepLib
{ {

View File

@@ -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
{ {

View File

@@ -1,6 +1,4 @@
using System; namespace PepLib
namespace PepLib
{ {
public class Part : IMovable public class Part : IMovable
{ {

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -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)
{ {

View File

@@ -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
{ {

View File

@@ -1,6 +1,4 @@
using System; namespace PepLib
namespace PepLib
{ {
public partial class Report public partial class Report
{ {

View File

@@ -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
{ {

View File

@@ -1,6 +1,4 @@
using System; namespace PepLib
namespace PepLib
{ {
public static class Tolerance public static class Tolerance
{ {

View File

@@ -1,6 +1,4 @@
using System; using System.Diagnostics;
using System.Diagnostics;
using System.IO;
namespace PepLib namespace PepLib
{ {

View File

@@ -1,6 +1,4 @@
using System; namespace PepLib
namespace PepLib
{ {
public struct Vector public struct Vector
{ {

View File

@@ -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;