Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibGit2Sharp/Core/Platform.cs14
1 files changed, 2 insertions, 12 deletions
diff --git a/LibGit2Sharp/Core/Platform.cs b/LibGit2Sharp/Core/Platform.cs
index 8297cc4b..debdc73a 100644
--- a/LibGit2Sharp/Core/Platform.cs
+++ b/LibGit2Sharp/Core/Platform.cs
@@ -1,7 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
namespace LibGit2Sharp.Core
{
@@ -12,18 +9,13 @@ namespace LibGit2Sharp.Core
MacOSX
}
- internal class Platform
+ internal static class Platform
{
public static string ProcessorArchitecture
{
get
{
- if (Environment.Is64BitProcess)
- {
- return "amd64";
- }
-
- return "x86";
+ return Environment.Is64BitProcess ? "amd64" : "x86";
}
}
@@ -32,8 +24,6 @@ namespace LibGit2Sharp.Core
get
{
// See http://www.mono-project.com/docs/faq/technical/#how-to-detect-the-execution-platform
- var platformId = (int)Environment.OSVersion.Platform;
-
switch ((int)Environment.OSVersion.Platform)
{
case 4: