From 00fec82ea1239b454a28e8f42ebbee545a20c043 Mon Sep 17 00:00:00 2001 From: Chen Junsheng Date: Mon, 15 Jul 2024 20:04:48 +0800 Subject: [PATCH] Remove SaveToFile Function --- SteamKit2/SteamKit2/Types/DepotManifest.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/SteamKit2/SteamKit2/Types/DepotManifest.cs b/SteamKit2/SteamKit2/Types/DepotManifest.cs index 3499c2752..f44ab9930 100644 --- a/SteamKit2/SteamKit2/Types/DepotManifest.cs +++ b/SteamKit2/SteamKit2/Types/DepotManifest.cs @@ -219,25 +219,6 @@ public bool DecryptFilenames(byte[] encryptionKey) return true; } - /// - /// Serializes depot manifest and saves the output to a file. - /// - /// Output file name. - /// true if serialization was successful; otherwise, false. - public bool SaveToFile( string filename ) - { - try - { - using var fs = File.Open( filename, FileMode.Create ); - Serialize( fs ); // Directly pass the FileStream to the Serialize method - return true; // If serialization completes without throwing an exception, return true - } - catch ( Exception ) - { - return false; // Return false if an error occurs - } - } - /// /// Loads binary manifest from a file and deserializes it. ///