mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-12 12:35:51 -05:00
Minor clean
Remove unused namespace usings
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace pkNX.Structures.FlatBuffers.SV;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace pkNX.Containers;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using pkNX.Containers;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using pkNX.Structures;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace pkNX.Structures;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace pkNX.Structures;
|
||||
|
||||
public abstract class EncounterTrade(byte[] data)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using System;
|
||||
|
||||
namespace pkNX.Structures;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace pkNX.Structures;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace pkNX.Structures;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using static pkNX.Structures.Species;
|
||||
|
||||
namespace pkNX.Structures;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using System.Windows.Forms;
|
||||
using pkNX.Structures;
|
||||
using PKHeX.Drawing.PokeSprite;
|
||||
using pkNX.Structures.FlatBuffers.Arceus;
|
||||
|
||||
namespace pkNX.WinForms;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user