diff --git a/FlatBuffers/SV/Shared/Gen9/SpeciesConverterSV.cs b/FlatBuffers/SV/Shared/Gen9/SpeciesConverterSV.cs index 5c4c7415..0e06b601 100644 --- a/FlatBuffers/SV/Shared/Gen9/SpeciesConverterSV.cs +++ b/FlatBuffers/SV/Shared/Gen9/SpeciesConverterSV.cs @@ -1,5 +1,3 @@ -using System; - namespace pkNX.Structures.FlatBuffers.SV; /// diff --git a/pkNX.Containers/InternalFileContainer.cs b/pkNX.Containers/InternalFileContainer.cs index b569fea6..2bd46ea5 100644 --- a/pkNX.Containers/InternalFileContainer.cs +++ b/pkNX.Containers/InternalFileContainer.cs @@ -1,4 +1,3 @@ -using System; using System.Linq; using System.Threading; using System.Threading.Tasks; diff --git a/pkNX.Containers/Misc/AHTB.cs b/pkNX.Containers/Misc/AHTB.cs index 547f44ae..ce495cc5 100644 --- a/pkNX.Containers/Misc/AHTB.cs +++ b/pkNX.Containers/Misc/AHTB.cs @@ -4,7 +4,6 @@ using System.Diagnostics; using System.IO; using System.Linq; -using System.Runtime.Serialization; namespace pkNX.Containers; diff --git a/pkNX.Containers/SingleFileContainer.cs b/pkNX.Containers/SingleFileContainer.cs index fb811c03..92b12471 100644 --- a/pkNX.Containers/SingleFileContainer.cs +++ b/pkNX.Containers/SingleFileContainer.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Linq; using System.Threading; diff --git a/pkNX.Containers/SpanExtensions.cs b/pkNX.Containers/SpanExtensions.cs index 04b2a0c7..b4e21296 100644 --- a/pkNX.Containers/SpanExtensions.cs +++ b/pkNX.Containers/SpanExtensions.cs @@ -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; diff --git a/pkNX.Containers/VFS/FileSystems/Archives/ZipArchiveFileSystem.cs b/pkNX.Containers/VFS/FileSystems/Archives/ZipArchiveFileSystem.cs index f6cb89c0..d2772273 100644 --- a/pkNX.Containers/VFS/FileSystems/Archives/ZipArchiveFileSystem.cs +++ b/pkNX.Containers/VFS/FileSystems/Archives/ZipArchiveFileSystem.cs @@ -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 GetZipEntries() => ZipArchive.Entries; + private ReadOnlyCollection 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 GetEntitiesInDirectory(FileSystemPath directory, Func? filter = null) { diff --git a/pkNX.Game/File/GamePath.cs b/pkNX.Game/File/GamePath.cs index 9b6a0901..c5fcc7bf 100644 --- a/pkNX.Game/File/GamePath.cs +++ b/pkNX.Game/File/GamePath.cs @@ -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; diff --git a/pkNX.Game/GameManagerPLA.cs b/pkNX.Game/GameManagerPLA.cs index 40efb908..e33630f9 100644 --- a/pkNX.Game/GameManagerPLA.cs +++ b/pkNX.Game/GameManagerPLA.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.IO; using System.Linq; using pkNX.Containers; diff --git a/pkNX.Randomization/Randomizers/SpeciesRandomizer.cs b/pkNX.Randomization/Randomizers/SpeciesRandomizer.cs index 1573f8cf..fd3a5177 100644 --- a/pkNX.Randomization/Randomizers/SpeciesRandomizer.cs +++ b/pkNX.Randomization/Randomizers/SpeciesRandomizer.cs @@ -1,4 +1,3 @@ -using System; using System.Linq; using pkNX.Structures; diff --git a/pkNX.Structures/Dumpers/PersonalDumper.cs b/pkNX.Structures/Dumpers/PersonalDumper.cs index 8588a202..3a0aeeba 100644 --- a/pkNX.Structures/Dumpers/PersonalDumper.cs +++ b/pkNX.Structures/Dumpers/PersonalDumper.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/pkNX.Structures/EggMove/EggMoves2.cs b/pkNX.Structures/EggMove/EggMoves2.cs index cea70061..508b5a6b 100644 --- a/pkNX.Structures/EggMove/EggMoves2.cs +++ b/pkNX.Structures/EggMove/EggMoves2.cs @@ -1,4 +1,3 @@ -using System; using System.Linq; namespace pkNX.Structures; diff --git a/pkNX.Structures/Encounter/EncounterTrade.cs b/pkNX.Structures/Encounter/EncounterTrade.cs index e619b372..250050a4 100644 --- a/pkNX.Structures/Encounter/EncounterTrade.cs +++ b/pkNX.Structures/Encounter/EncounterTrade.cs @@ -1,5 +1,3 @@ -using System; - namespace pkNX.Structures; public abstract class EncounterTrade(byte[] data) diff --git a/pkNX.Structures/Evolution/EvolutionSet.cs b/pkNX.Structures/Evolution/EvolutionSet.cs index 41a077b0..daba5e5f 100644 --- a/pkNX.Structures/Evolution/EvolutionSet.cs +++ b/pkNX.Structures/Evolution/EvolutionSet.cs @@ -1,5 +1,3 @@ -using System; - namespace pkNX.Structures; /// diff --git a/pkNX.Structures/Learnset/Learnset6.cs b/pkNX.Structures/Learnset/Learnset6.cs index 14d0beca..0bcbb7b5 100644 --- a/pkNX.Structures/Learnset/Learnset6.cs +++ b/pkNX.Structures/Learnset/Learnset6.cs @@ -1,4 +1,3 @@ -using System; using System.IO; namespace pkNX.Structures; diff --git a/pkNX.Structures/Learnset/Learnset8.cs b/pkNX.Structures/Learnset/Learnset8.cs index ca6d6692..6c9c0420 100644 --- a/pkNX.Structures/Learnset/Learnset8.cs +++ b/pkNX.Structures/Learnset/Learnset8.cs @@ -1,4 +1,3 @@ -using System; using System.IO; namespace pkNX.Structures; diff --git a/pkNX.Structures/Legality/Tables/Tables8a.cs b/pkNX.Structures/Legality/Tables/Tables8a.cs index d6650db7..b437ac1e 100644 --- a/pkNX.Structures/Legality/Tables/Tables8a.cs +++ b/pkNX.Structures/Legality/Tables/Tables8a.cs @@ -1,4 +1,3 @@ -using System; using static pkNX.Structures.Species; namespace pkNX.Structures; diff --git a/pkNX.WinForms/Controls/EvolutionEntry.xaml.cs b/pkNX.WinForms/Controls/EvolutionEntry.xaml.cs index b4e98c9d..21836307 100644 --- a/pkNX.WinForms/Controls/EvolutionEntry.xaml.cs +++ b/pkNX.WinForms/Controls/EvolutionEntry.xaml.cs @@ -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; diff --git a/pkNX.WinForms/Controls/EvolutionRow8a.cs b/pkNX.WinForms/Controls/EvolutionRow8a.cs index 56388171..0f3e14f7 100644 --- a/pkNX.WinForms/Controls/EvolutionRow8a.cs +++ b/pkNX.WinForms/Controls/EvolutionRow8a.cs @@ -3,7 +3,6 @@ using System.Windows.Forms; using pkNX.Structures; using PKHeX.Drawing.PokeSprite; -using pkNX.Structures.FlatBuffers.Arceus; namespace pkNX.WinForms; diff --git a/pkNX.WinForms/Main.cs b/pkNX.WinForms/Main.cs index 0f9aa072..65b5f4cc 100644 --- a/pkNX.WinForms/Main.cs +++ b/pkNX.WinForms/Main.cs @@ -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; diff --git a/pkNX.WinForms/MainEditor/EditorProvider.cs b/pkNX.WinForms/MainEditor/EditorProvider.cs index 90374020..f2b39bf3 100644 --- a/pkNX.WinForms/MainEditor/EditorProvider.cs +++ b/pkNX.WinForms/MainEditor/EditorProvider.cs @@ -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; diff --git a/pkNX.WinForms/Subforms/ModelConverter.cs b/pkNX.WinForms/Subforms/ModelConverter.cs index 994463c7..f3805558 100644 --- a/pkNX.WinForms/Subforms/ModelConverter.cs +++ b/pkNX.WinForms/Subforms/ModelConverter.cs @@ -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; diff --git a/pkNX.WinForms/Utils/NotifyObservableCollection.cs b/pkNX.WinForms/Utils/NotifyObservableCollection.cs index 30146147..68865277 100644 --- a/pkNX.WinForms/Utils/NotifyObservableCollection.cs +++ b/pkNX.WinForms/Utils/NotifyObservableCollection.cs @@ -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