Skip to content

Commit

Permalink
Remove unused method in FormatterObjectGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
ITaluone committed Jun 22, 2024
1 parent de05493 commit debd62f
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions Src/FluentAssertions/Formatting/FormattedObjectGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void FlushCurrentLine()
{
if (lineBuilder.Length > 0)
{
AppendSafely(lineBuilderWhitespace + lineBuilder);
AppendSafely($"{lineBuilderWhitespace}{lineBuilder}");

lineBuilder.Clear();
lineBuilderWhitespace = Whitespace;
Expand Down Expand Up @@ -250,24 +250,6 @@ internal void AddLineOrFragment(string fragment)
}
}

/// <summary>
/// Write the fragment. If more lines have been added since this instance was
/// created then also flush the line and indent the next line.
/// </summary>
internal void AddEndingLineOrFragment(string fragment)
{
if (FormatOnSingleLine)
{
parentGraph.AddFragment(fragment);
}
else
{
parentGraph.AddFragment(fragment);
parentGraph.FlushCurrentLine();
parentGraph.lineBuilderWhitespace += MakeWhitespace(1);
}
}

internal void AddFragment(string fragment) => parentGraph.AddFragment(fragment);
}
}

0 comments on commit debd62f

Please sign in to comment.