diff --git a/src/BizHawk.Common/HawkFile/HawkFile.cs b/src/BizHawk.Common/HawkFile/HawkFile.cs index 6ea36f8334..2af5e4f417 100644 --- a/src/BizHawk.Common/HawkFile/HawkFile.cs +++ b/src/BizHawk.Common/HawkFile/HawkFile.cs @@ -265,23 +265,9 @@ namespace BizHawk.Common public static readonly IReadOnlyCollection CommonNonArchiveExtensions = new[] { ".smc", ".sfc", ".dll" }; - /// Utility: Uses full HawkFile processing to determine whether a file exists at the provided path - public static bool ExistsAt(string path) - { - using var file = new HawkFile(path); - return file.Exists; - } - [return: HawkFilePath] private static string MakeCanonicalName(string root, string? member) => member == null ? root : $"{root}|{member}"; - /// reads all the contents of the file at - /// could not find - public static byte[] ReadAllBytes(string path) - { - using var file = new HawkFile(path); - return file.Exists ? file.ReadAllBytes() : throw new FileNotFoundException(path); - } /// path / member path pair iff contains '|', otherwise private static (string, string)? SplitArchiveMemberPath([HawkFilePath] string path)