Skip to content

Commit 00fec82

Browse files
committed
Remove SaveToFile Function
1 parent cab28e6 commit 00fec82

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

SteamKit2/SteamKit2/Types/DepotManifest.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -219,25 +219,6 @@ public bool DecryptFilenames(byte[] encryptionKey)
219219
return true;
220220
}
221221

222-
/// <summary>
223-
/// Serializes depot manifest and saves the output to a file.
224-
/// </summary>
225-
/// <param name="filename">Output file name.</param>
226-
/// <returns><c>true</c> if serialization was successful; otherwise, <c>false</c>.</returns>
227-
public bool SaveToFile( string filename )
228-
{
229-
try
230-
{
231-
using var fs = File.Open( filename, FileMode.Create );
232-
Serialize( fs ); // Directly pass the FileStream to the Serialize method
233-
return true; // If serialization completes without throwing an exception, return true
234-
}
235-
catch ( Exception )
236-
{
237-
return false; // Return false if an error occurs
238-
}
239-
}
240-
241222
/// <summary>
242223
/// Loads binary manifest from a file and deserializes it.
243224
/// </summary>

0 commit comments

Comments
 (0)