Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminAbt committed Sep 12, 2024
1 parent 51aa035 commit 3b7813a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,5 @@ public enum HttpUserAgentPlatformType : byte
/// <summary>
/// Symbian
/// </summary>
Symbian,
/// <summary>
/// Web
/// </summary>
Web
Symbian
}
6 changes: 1 addition & 5 deletions src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright © myCSharp.de - all rights reserved

using System.Text.RegularExpressions;

namespace MyCSharp.HttpUserAgentParser;

/// <summary>
Expand All @@ -17,8 +15,7 @@ public static class HttpUserAgentStatics
/// <summary>
/// Creates default platform mapping regex
/// </summary>
private static Regex CreateDefaultPlatformRegex(string key)
=> new(Regex.Escape($"{key}"), DefaultPlatformsRegexFlags);
private static Regex CreateDefaultPlatformRegex(string key) => new(Regex.Escape($"{key}"), DefaultPlatformsRegexFlags);

Check failure on line 18 in src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'Regex' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 18 in src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'Regex' could not be found (are you missing a using directive or an assembly reference?)

/// <summary>
/// Platforms
Expand Down Expand Up @@ -67,7 +64,6 @@ private static Regex CreateDefaultPlatformRegex(string key)
new(CreateDefaultPlatformRegex("gnu"), "GNU/Linux", HttpUserAgentPlatformType.Linux),
new(CreateDefaultPlatformRegex("unix"), "Unknown Unix OS", HttpUserAgentPlatformType.Unix),
new(CreateDefaultPlatformRegex("symbian"), "Symbian OS", HttpUserAgentPlatformType.Symbian),
new(CreateDefaultPlatformRegex("symbian"), "Symbian OS", HttpUserAgentPlatformType.Symbian),
];

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/MyCSharp.HttpUserAgentParser/HttpUserAgentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ public enum HttpUserAgentType : byte
/// <summary>
/// Robot
/// </summary>
Robot,
Robot
}

0 comments on commit 3b7813a

Please sign in to comment.