Skip to content

Commit 6de2c9b

Browse files
committed
Refactor
1 parent 1234481 commit 6de2c9b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/InEngine.Core/StreamCopy.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
using System;
2-
using System.IO;
3-
using System.IO.Compression;
4-
using System.Text;
1+
using System.IO;
52

63
namespace InEngine.Core
74
{
8-
public class StreamCopy
5+
public static class StreamCopy
96
{
107
public static void FromTo(Stream src, Stream dest)
118
{
129
byte[] bytes = new byte[4096];
13-
1410
int cnt;
15-
1611
while ((cnt = src.Read(bytes, 0, bytes.Length)) != 0)
17-
{
1812
dest.Write(bytes, 0, cnt);
19-
}
2013
}
2114
}
2215
}

0 commit comments

Comments
 (0)