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
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public class Box
|
||||
{
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
|
||||
[Table("Drawing")]
|
||||
public partial class Drawing
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
|
||||
[Table("NestDetail")]
|
||||
public partial class NestDetail
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
|
||||
[Table("NestDrawing")]
|
||||
public partial class NestDrawing
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
|
||||
[Table("NestHeader")]
|
||||
public partial class NestHeader
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
|
||||
[Table("PlateDetail")]
|
||||
public partial class PlateDetail
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
|
||||
[Table("PlateHeader")]
|
||||
public partial class PlateHeader
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using PepLib.Codes;
|
||||
using PepLib.Codes;
|
||||
using PepLib.IO;
|
||||
|
||||
namespace PepLib
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using PepLib.IO;
|
||||
|
||||
namespace PepLib
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public static class Generic
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using PepLib.Codes;
|
||||
using PepLib.Codes;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.IO;
|
||||
using PepLib.Codes;
|
||||
using PepLib.Codes;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
@@ -70,7 +69,7 @@ namespace PepLib.IO
|
||||
if (nextBlock.CodeType() == CodeType.Comment)
|
||||
{
|
||||
var comment = nextBlock as Comment;
|
||||
|
||||
|
||||
if (comment.Value == "DISPLAY ONLY")
|
||||
{
|
||||
part.IsDisplayOnly = true;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using PepLib.Codes;
|
||||
using System.Text;
|
||||
using PepLib.Codes;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
@@ -164,33 +162,33 @@ namespace PepLib.IO
|
||||
break;
|
||||
|
||||
case ':':
|
||||
{
|
||||
var value = code.Value.Trim().ToUpper();
|
||||
|
||||
switch (value)
|
||||
{
|
||||
case "EXTERNAL LEAD-IN":
|
||||
type = EntityType.ExternalLeadin;
|
||||
break;
|
||||
var value = code.Value.Trim().ToUpper();
|
||||
|
||||
case "EXTERNAL LEAD-OUT":
|
||||
type = EntityType.ExternalLeadout;
|
||||
break;
|
||||
switch (value)
|
||||
{
|
||||
case "EXTERNAL LEAD-IN":
|
||||
type = EntityType.ExternalLeadin;
|
||||
break;
|
||||
|
||||
case "INTERNAL LEAD-IN":
|
||||
type = EntityType.InternalLeadin;
|
||||
break;
|
||||
case "EXTERNAL LEAD-OUT":
|
||||
type = EntityType.ExternalLeadout;
|
||||
break;
|
||||
|
||||
case "INTERNAL LEAD-OUT":
|
||||
type = EntityType.InternalLeadout;
|
||||
break;
|
||||
case "INTERNAL LEAD-IN":
|
||||
type = EntityType.InternalLeadin;
|
||||
break;
|
||||
|
||||
case "DISPLAY":
|
||||
type = EntityType.Display;
|
||||
break;
|
||||
case "INTERNAL LEAD-OUT":
|
||||
type = EntityType.InternalLeadout;
|
||||
break;
|
||||
|
||||
case "DISPLAY":
|
||||
type = EntityType.Display;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
section = CodeSection.Unknown;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace PepLib.IO
|
||||
{
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public class IniConfig
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using PepLib.Codes;
|
||||
using PepLib.Codes;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public static class MathHelper
|
||||
{
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using PepLib.Codes;
|
||||
using PepLib.Codes;
|
||||
using PepLib.IO;
|
||||
|
||||
namespace PepLib
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public class NestDrawing
|
||||
{
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using PepLib.IO;
|
||||
using System.Text;
|
||||
using PepLib.IO;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using PepLib.IO;
|
||||
using PepLib.IO;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public class Node
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public class Part : IMovable
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public static class PartListExtensions
|
||||
{
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public class Plate : IMovable
|
||||
{
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public static class PlateListExtensions
|
||||
{
|
||||
public static void JoinLikePlates(this List<Report.Plate> plates)
|
||||
{
|
||||
START:
|
||||
START:
|
||||
|
||||
for (int i = 0; i < plates.Count; ++i)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using PepLib.Codes;
|
||||
using PepLib.Codes;
|
||||
using PepLib.IO;
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public partial class Report
|
||||
{
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using PepLib.IO;
|
||||
using PepLib.IO;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public static class Tolerance
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
namespace PepLib
|
||||
{
|
||||
public struct Vector
|
||||
{
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user