aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EnvironmentInfo
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2019-01-22 18:13:47 -0500
committerGitHub <noreply@github.com>2019-01-22 18:13:47 -0500
commit28483bdb54be96ae83e0fded097f534d7e26ba1e (patch)
treee7f4b92326417ebf55eecdf68a01d2c3b9e660d7 /Emby.Server.Implementations/EnvironmentInfo
parent920c39454c05e979eabe81877269cd4517a03ccf (diff)
parent8106c8393b711a7e1d40487e3caf2b014decbe28 (diff)
Merge pull request #651 from jellyfin/release-10.1.0
Release 10.1.0
Diffstat (limited to 'Emby.Server.Implementations/EnvironmentInfo')
-rw-r--r--Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs39
1 files changed, 4 insertions, 35 deletions
diff --git a/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs b/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs
index 03e10e7ea..c8104150d 100644
--- a/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs
+++ b/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs
@@ -1,11 +1,9 @@
-using System;
-using System.IO;
-using MediaBrowser.Model.System;
+using System;
using System.Runtime.InteropServices;
+using MediaBrowser.Model.System;
namespace Emby.Server.Implementations.EnvironmentInfo
{
- // TODO: Rework @bond
public class EnvironmentInfo : IEnvironmentInfo
{
public EnvironmentInfo(MediaBrowser.Model.System.OperatingSystem operatingSystem)
@@ -31,37 +29,8 @@ namespace Emby.Server.Implementations.EnvironmentInfo
}
}
- public string OperatingSystemVersion
- {
- get
- {
- return Environment.OSVersion.Version.ToString() + " " + Environment.OSVersion.ServicePack.ToString();
- }
- }
-
- public char PathSeparator
- {
- get
- {
- return Path.PathSeparator;
- }
- }
-
- public Architecture SystemArchitecture { get { return RuntimeInformation.OSArchitecture; } }
-
- public string GetEnvironmentVariable(string name)
- {
- return Environment.GetEnvironmentVariable(name);
- }
+ public string OperatingSystemVersion => Environment.OSVersion.Version.ToString() + " " + Environment.OSVersion.ServicePack.ToString();
- public string StackTrace
- {
- get { return Environment.StackTrace; }
- }
-
- public void SetProcessEnvironmentVariable(string name, string value)
- {
- Environment.SetEnvironmentVariable(name, value);
- }
+ public Architecture SystemArchitecture => RuntimeInformation.OSArchitecture;
}
}