File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 11using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Text ;
52
63namespace LibGit2Sharp . Core
74{
@@ -12,18 +9,13 @@ internal enum OperatingSystemType
129MacOSX
1310}
1411
15- internal class Platform
12+ internal static class Platform
1613{
1714public static string ProcessorArchitecture
1815{
1916get
2017{
21- if ( Environment . Is64BitProcess )
22- {
23- return "amd64" ;
24- }
25-
26- return "x86" ;
18+ return Environment . Is64BitProcess ? "amd64" : "x86" ;
2719}
2820}
2921
@@ -32,8 +24,6 @@ public static OperatingSystemType OperatingSystem
3224get
3325{
3426// See http://www.mono-project.com/docs/faq/technical/#how-to-detect-the-execution-platform
35- var platformId = ( int ) Environment . OSVersion . Platform ;
36-
3727switch ( ( int ) Environment . OSVersion . Platform )
3828{
3929case 4 :
You can’t perform that action at this time.
0 commit comments