File tree 1 file changed +2
-12
lines changed 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
2
6
3
namespace LibGit2Sharp . Core
7
4
{
@@ -12,18 +9,13 @@ internal enum OperatingSystemType
12
9
MacOSX
13
10
}
14
11
15
- internal class Platform
12
+ internal static class Platform
16
13
{
17
14
public static string ProcessorArchitecture
18
15
{
19
16
get
20
17
{
21
- if ( Environment . Is64BitProcess )
22
- {
23
- return "amd64" ;
24
- }
25
-
26
- return "x86" ;
18
+ return Environment . Is64BitProcess ? "amd64" : "x86" ;
27
19
}
28
20
}
29
21
@@ -32,8 +24,6 @@ public static OperatingSystemType OperatingSystem
32
24
get
33
25
{
34
26
// See http://www.mono-project.com/docs/faq/technical/#how-to-detect-the-execution-platform
35
- var platformId = ( int ) Environment . OSVersion . Platform ;
36
-
37
27
switch ( ( int ) Environment . OSVersion . Platform )
38
28
{
39
29
case 4 :
You can’t perform that action at this time.
0 commit comments