From 476295ccece2454d8024394393d372bd36f5561c Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 7 Aug 2020 16:30:17 +1000 Subject: [PATCH] Remove unused HawkFile static helpers --- src/BizHawk.Common/HawkFile/HawkFile.cs | 14 -------------- 1 file changed, 14 deletions(-) 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)