Skip to content

Commit 703c877

Browse files
authored
PR #546: Make pure private functions static
1 parent 89e7bdd commit 703c877

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ internal void ProcessExtraData(bool localHeader)
11251125
}
11261126
}
11271127

1128-
private DateTime? GetDateTime(ZipExtraData extraData)
1128+
private static DateTime? GetDateTime(ZipExtraData extraData)
11291129
{
11301130
// Check for NT timestamp
11311131
// NOTE: Disable by default to match behavior of InfoZIP

src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ public void AddDirectory(string directoryName)
19111911
/// Check if the specified compression method is supported for adding a new entry.
19121912
/// </summary>
19131913
/// <param name="compressionMethod">The compression method for the new entry.</param>
1914-
private void CheckSupportedCompressionMethod(CompressionMethod compressionMethod)
1914+
private static void CheckSupportedCompressionMethod(CompressionMethod compressionMethod)
19151915
{
19161916
if (compressionMethod != CompressionMethod.Deflated && compressionMethod != CompressionMethod.Stored && compressionMethod != CompressionMethod.BZip2)
19171917
{

0 commit comments

Comments
 (0)