Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromoh committed Oct 15, 2023
1 parent b250047 commit 5dff332
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions RecordParser/Parsers/FixedLengthWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ namespace RecordParser.Parsers
public interface IFixedLengthWriter<T>
{
bool TryFormat(T instance, Span<char> destination, out int charsWritten);

[Obsolete("Method was renamed to TryFormat. Parse will eventually be removed in future release.")]
bool Parse(T instance, Span<char> destination, out int charsWritten);
}

/// <summary>
Expand All @@ -31,10 +28,6 @@ public FixedLengthWriter(FuncSpanTIntBool<T> parse)
this.parse = parse;
}

[Obsolete("Method was renamed to TryFormat. Parse will eventually be removed in future release.")]
public bool Parse(T instance, Span<char> destination, out int charsWritten) =>
TryFormat(instance, destination, out charsWritten);

public bool TryFormat(T instance, Span<char> destination, out int charsWritten)
{
var result = parse(destination, instance);
Expand Down
7 changes: 0 additions & 7 deletions RecordParser/Parsers/VariableLengthWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ namespace RecordParser.Parsers
public interface IVariableLengthWriter<T>
{
bool TryFormat(T instance, Span<char> destination, out int charsWritten);

[Obsolete("Method was renamed to TryFormat. Parse will eventually be removed in future release.")]
bool Parse(T instance, Span<char> destination, out int charsWritten);
}

internal delegate (bool success, int charsWritten) FuncSpanSpanTInt<T>(Span<char> span, ReadOnlySpan<char> delimiter, T inst);
Expand All @@ -23,10 +20,6 @@ public VariableLengthWriter(FuncSpanSpanTInt<T> parse, string separator)
this.separator = separator;
}

[Obsolete("Method was renamed to TryFormat. Parse will eventually be removed in future release.")]
public bool Parse(T instance, Span<char> destination, out int charsWritten) =>
TryFormat(instance, destination, out charsWritten);

public bool TryFormat(T instance, Span<char> destination, out int charsWritten)
{
var result = parse(destination, separator, instance);
Expand Down

0 comments on commit 5dff332

Please sign in to comment.