Skip to content

Commit

Permalink
PR #626: make a couple of private functions static
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy committed May 11, 2021
1 parent c65486c commit 51343ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/GZip/GzipOutputStream.cs
Expand Up @@ -243,7 +243,7 @@ public override void Finish()

#region Support Routines

private string CleanFilename(string path)
private static string CleanFilename(string path)
=> path.Substring(path.LastIndexOf('/') + 1);

private void WriteHeader()
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
Expand Up @@ -2485,7 +2485,7 @@ private void CopyDescriptorBytes(ZipUpdate update, Stream dest, Stream source)
/// <param name="update">The update to get the size for.</param>
/// <param name="includingSignature">Whether to include the signature size</param>
/// <returns>The descriptor size, zero if there isn't one.</returns>
private int GetDescriptorSize(ZipUpdate update, bool includingSignature)
private static int GetDescriptorSize(ZipUpdate update, bool includingSignature)
{
if (!((GeneralBitFlags)update.Entry.Flags).HasFlag(GeneralBitFlags.Descriptor))
return 0;
Expand Down

0 comments on commit 51343ec

Please sign in to comment.