Skip to content

Commit 51343ec

Browse files
authored
PR #626: make a couple of private functions static
1 parent c65486c commit 51343ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ICSharpCode.SharpZipLib/GZip/GzipOutputStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public override void Finish()
243243

244244
#region Support Routines
245245

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

249249
private void WriteHeader()

src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ private void CopyBytes(ZipUpdate update, Stream destination, Stream source,
24852485
/// <param name="update">The update to get the size for.</param>
24862486
/// <param name="includingSignature">Whether to include the signature size</param>
24872487
/// <returns>The descriptor size, zero if there isn't one.</returns>
2488-
private int GetDescriptorSize(ZipUpdate update, bool includingSignature)
2488+
private static int GetDescriptorSize(ZipUpdate update, bool includingSignature)
24892489
{
24902490
if (!((GeneralBitFlags)update.Entry.Flags).HasFlag(GeneralBitFlags.Descriptor))
24912491
return 0;

0 commit comments

Comments
 (0)