Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-visionaid committed Nov 16, 2024
1 parent 862e332 commit 73526c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions OpenMcdf/FatSectorEnumerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public bool MoveNext()
return MoveTo(nextIndex);
}

public bool IsAt(uint index) => !start && index == this.index;

/// <summary>
/// Moves the enumerator to the specified sector.
/// </summary>
Expand Down Expand Up @@ -120,7 +118,6 @@ public void Reset()
/// <returns>The ID of the new sector that was added</returns>
public uint Add()
{
// No FAT sectors are free, so add a new one
Header header = Context.Header;
uint nextIndex = Context.Header.FatSectorCount;
Sector newFatSector = new(Context.SectorCount, Context.SectorSize);
Expand Down
2 changes: 1 addition & 1 deletion OpenMcdf/RootStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void Consolidate()
if (Context.BaseStream is MemoryStream)
destinationStream = new MemoryStream((int)Context.BaseStream.Length);
else if (Context.BaseStream is FileStream)
destinationStream = File.Create(System.IO.Path.GetTempFileName());
destinationStream = File.Create(Path.GetTempFileName());
else
throw new NotSupportedException("Unsupported stream type for consolidation.");

Expand Down
1 change: 1 addition & 0 deletions exclusion.dic
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Blaseotto
CFB
CLSID
codepage
defragmentation
depersist
DIFAT
endian
Expand Down

0 comments on commit 73526c2

Please sign in to comment.