Skip to content

Commit

Permalink
Drop IniWriter.BaseStream
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblocks committed Nov 13, 2022
1 parent 60e8d85 commit 4c4becc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions nini.core/Ini/IniWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class IniWriter : IDisposable
TextWriter textWriter = null;
string eol = "\r\n";
StringBuilder indentationBuffer = new StringBuilder ();
Stream baseStream = null;
bool disposed = false;
#endregion

Expand Down Expand Up @@ -85,9 +84,6 @@ public char AssignDelimiter
get => assignDelimiter;
set => assignDelimiter = value;
}

/// <include file='IniWriter.xml' path='//Property[@name="BaseStream"]/docs/*' />
public Stream BaseStream => baseStream;

#endregion

Expand All @@ -102,10 +98,7 @@ public IniWriter(string filePath)
public IniWriter (TextWriter writer)
{
textWriter = writer;
if (writer is StreamWriter streamWriter) {
baseStream = streamWriter.BaseStream;
}
}
}

/// <include file='IniWriter.xml' path='//Constructor[@name="ConstructorStream"]/docs/*' />
public IniWriter (Stream stream)
Expand Down Expand Up @@ -202,7 +195,6 @@ protected virtual void Dispose (bool disposing)
if (!disposed)
{
textWriter?.Close();
baseStream?.Close();
disposed = true;

if (disposing)
Expand Down

0 comments on commit 4c4becc

Please sign in to comment.