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:
authornulltoken <emeric.fermas@gmail.com>2015-04-14 12:11:14 +0300
committernulltoken <emeric.fermas@gmail.com>2015-04-14 12:11:14 +0300
commit3de74b0511790253107b09d7c68406f6cea29e92 (patch)
treec2d7f8f96641c2183874cfdfeff8e0d4a0a20fe8 /LibGit2Sharp
parent0a0dce7b741c2181ff10d9e5e9e20a268aeed4c9 (diff)
parent1e644359df387a519710b769afb7824ae46b8c69 (diff)
Merge pull request #1021 from ThomasBarnekow/beautify-platform-class
Beautify Platform class
Diffstat (limited to 'LibGit2Sharp')
-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: