diff options
author | ThomasBarnekow <thomas@barnekow.info> | 2015-04-14 11:45:35 +0300 |
---|---|---|
committer | ThomasBarnekow <thomas@barnekow.info> | 2015-04-14 11:45:35 +0300 |
commit | 1e644359df387a519710b769afb7824ae46b8c69 (patch) | |
tree | 0ef5659050bba03fe6a854df045ee1bf84b4057c /LibGit2Sharp | |
parent | cad89d0814481252a70a811c0fb5daecc8b8b745 (diff) |
Beautify Platform class
This commit beautifies the Platform class by removing unused usings and
streamlining code.
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r-- | LibGit2Sharp/Core/Platform.cs | 14 |
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: |