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