Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make a couple of private functions static #626

Merged
merged 1 commit into from May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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