aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/StartupOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/StartupOptions.cs')
-rw-r--r--Emby.Server.Implementations/StartupOptions.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/Emby.Server.Implementations/StartupOptions.cs b/Emby.Server.Implementations/StartupOptions.cs
deleted file mode 100644
index 221263634..000000000
--- a/Emby.Server.Implementations/StartupOptions.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System;
-using System.Linq;
-
-namespace Emby.Server.Implementations
-{
- public class StartupOptions
- {
- private readonly string[] _options;
-
- public StartupOptions(string[] commandLineArgs)
- {
- _options = commandLineArgs;
- }
-
- public bool ContainsOption(string option)
- => _options.Contains(option, StringComparer.OrdinalIgnoreCase);
-
- public string GetOption(string name)
- {
- int index = Array.IndexOf(_options, name);
-
- if (index == -1)
- {
- return null;
- }
-
- return _options.ElementAtOrDefault(index + 1);
- }
- }
-}