Skip to content

Commit

Permalink
remove redundant WriteText
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 19, 2023
1 parent ce82f67 commit 826094d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Verify/IoHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,6 @@ static bool TryCopyFileStream(string path, Stream stream)

#if NET462 || NET472 || NET48 || NETSTANDARD2_0

public static Task WriteText(string path, string text)
{
CreateDirectory(Path.GetDirectoryName(path)!);
File.WriteAllText(path, text, Utf8);
return Task.CompletedTask;
}

public static Task WriteText(string path, StringBuilder text)
{
CreateDirectory(Path.GetDirectoryName(path)!);
Expand All @@ -171,12 +164,6 @@ public static Task WriteText(string path, StringBuilder text)

#else

public static Task WriteText(string path, string text)
{
CreateDirectory(Path.GetDirectoryName(path)!);
return File.WriteAllTextAsync(path, text, Utf8);
}

public static Task WriteText(string path, StringBuilder text)
{
CreateDirectory(Path.GetDirectoryName(path)!);
Expand Down

0 comments on commit 826094d

Please sign in to comment.