Minor clean

Remove unused namespace usings
This commit is contained in:
Kurt
2025-06-23 00:25:11 -05:00
parent 9d3bf2f71b
commit 31b45ee883
22 changed files with 5 additions and 39 deletions

View File

@@ -1,5 +1,3 @@
using System;
namespace pkNX.Structures.FlatBuffers.SV;
/// <summary>

View File

@@ -1,4 +1,3 @@
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

View File

@@ -4,7 +4,6 @@
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
namespace pkNX.Containers;

View File

@@ -1,4 +1,3 @@
using System;
using System.IO;
using System.Linq;
using System.Threading;

View File

@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace pkNX.Containers;

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.IO.Compression;
@@ -17,14 +18,14 @@ public sealed class ZipArchiveFileSystem : IFileSystem
public void Dispose() => ZipArchive.Dispose();
protected IEnumerable<ZipArchiveEntry> GetZipEntries() => ZipArchive.Entries;
private ReadOnlyCollection<ZipArchiveEntry> GetZipEntries() => ZipArchive.Entries;
protected FileSystemPath ToPath(ZipArchiveEntry entry) => FileSystemPath.Parse(FileSystemPath.DirectorySeparator + entry.FullName);
private FileSystemPath ToPath(ZipArchiveEntry entry) => FileSystemPath.Parse(FileSystemPath.DirectorySeparator + entry.FullName);
// Remove heading '/' from path.
protected string ToEntryPath(FileSystemPath path) => path.Path.TrimStart(FileSystemPath.DirectorySeparator);
private string ToEntryPath(FileSystemPath path) => path.Path.TrimStart(FileSystemPath.DirectorySeparator);
protected ZipArchiveEntry? ToEntry(FileSystemPath path) => ZipArchive.GetEntry(ToEntryPath(path));
private ZipArchiveEntry? ToEntry(FileSystemPath path) => ZipArchive.GetEntry(ToEntryPath(path));
public IEnumerable<FileSystemPath> GetEntitiesInDirectory(FileSystemPath directory, Func<FileSystemPath, bool>? filter = null)
{

View File

@@ -1,11 +1,6 @@
using pkNX.Containers.VFS;
using pkNX.Structures;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace pkNX.Game;

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using pkNX.Containers;

View File

@@ -1,4 +1,3 @@
using System;
using System.Linq;
using pkNX.Structures;

View File

@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

View File

@@ -1,4 +1,3 @@
using System;
using System.Linq;
namespace pkNX.Structures;

View File

@@ -1,5 +1,3 @@
using System;
namespace pkNX.Structures;
public abstract class EncounterTrade(byte[] data)

View File

@@ -1,5 +1,3 @@
using System;
namespace pkNX.Structures;
/// <summary>

View File

@@ -1,4 +1,3 @@
using System;
using System.IO;
namespace pkNX.Structures;

View File

@@ -1,4 +1,3 @@
using System;
using System.IO;
namespace pkNX.Structures;

View File

@@ -1,4 +1,3 @@
using System;
using static pkNX.Structures.Species;
namespace pkNX.Structures;

View File

@@ -1,14 +1,11 @@
using PKHeX.Drawing.PokeSprite;
using pkNX.Game;
using pkNX.Structures;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Windows;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace pkNX.WinForms;

View File

@@ -3,7 +3,6 @@
using System.Windows.Forms;
using pkNX.Structures;
using PKHeX.Drawing.PokeSprite;
using pkNX.Structures.FlatBuffers.Arceus;
namespace pkNX.WinForms;

View File

@@ -4,7 +4,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Forms;
using Application = System.Windows.Forms.Application;

View File

@@ -2,8 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Intrinsics.Arm;
using System.Windows.Controls;
using pkNX.Game;
using pkNX.Structures;

View File

@@ -16,14 +16,12 @@
using Material = pkNX.Structures.FlatBuffers.Arceus.Material;
using Mesh = pkNX.Structures.FlatBuffers.Arceus.Mesh;
using Bone = pkNX.Structures.FlatBuffers.Arceus.Bone;
using SamplerState = pkNX.Structures.FlatBuffers.Arceus.SamplerState;
using UVWrapMode = pkNX.Structures.FlatBuffers.Arceus.UVWrapMode;
using Material8 = pkNX.Structures.FlatBuffers.SWSH.Material;
using Mesh8 = pkNX.Structures.FlatBuffers.SWSH.Mesh;
using Bone8 = pkNX.Structures.FlatBuffers.SWSH.Bone;
using SamplerState8 = pkNX.Structures.FlatBuffers.SWSH.SamplerState;
using UVWrapMode8 = pkNX.Structures.FlatBuffers.SWSH.UVWrapMode;
namespace pkNX.WinForms;

View File

@@ -3,7 +3,6 @@
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Text;
// Source https://stackoverflow.com/questions/1427471/observablecollection-not-noticing-when-item-in-it-changes-even-with-inotifyprop/32013610