Skip to content

Commit

Permalink
Remove redundant members (IDE0052)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-visionaid committed Oct 15, 2024
1 parent 442ff67 commit 82ea3f2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sources/OpenMcdf/CompoundFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public class CompoundFile : IDisposable
public bool ValidationExceptionEnabled { get; private set; } = true;

private readonly CFSUpdateMode updateMode = CFSUpdateMode.ReadOnly;
private string fileName = string.Empty;

/// <summary>
/// Initial capacity of the flushing queue used
Expand Down Expand Up @@ -643,8 +642,6 @@ private void Load(Stream stream)

private void LoadFile(string fileName)
{
this.fileName = fileName;

FileAccess access = updateMode == CFSUpdateMode.ReadOnly ? FileAccess.Read : FileAccess.ReadWrite;
FileShare share = updateMode == CFSUpdateMode.ReadOnly ? FileShare.ReadWrite : FileShare.Read;
FileStream fs = new(fileName, FileMode.Open, access, share);
Expand Down Expand Up @@ -2349,7 +2346,6 @@ protected virtual void Dispose(bool disposing)
header = null;
directoryEntries.Clear();
directoryEntries = null;
fileName = null;
//this.lockObject = null;
#if !FLAT_WRITE
this.buffer = null;
Expand Down

0 comments on commit 82ea3f2

Please sign in to comment.