Skip to content

Commit 3b7813a

Browse files
committed
remove test code
1 parent 51aa035 commit 3b7813a

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentPlatformType.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,5 @@ public enum HttpUserAgentPlatformType : byte
4646
/// <summary>
4747
/// Symbian
4848
/// </summary>
49-
Symbian,
50-
/// <summary>
51-
/// Web
52-
/// </summary>
53-
Web
49+
Symbian
5450
}

src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright © myCSharp.de - all rights reserved
22

3-
using System.Text.RegularExpressions;
4-
53
namespace MyCSharp.HttpUserAgentParser;
64

75
/// <summary>
@@ -17,8 +15,7 @@ public static class HttpUserAgentStatics
1715
/// <summary>
1816
/// Creates default platform mapping regex
1917
/// </summary>
20-
private static Regex CreateDefaultPlatformRegex(string key)
21-
=> new(Regex.Escape($"{key}"), DefaultPlatformsRegexFlags);
18+
private static Regex CreateDefaultPlatformRegex(string key) => new(Regex.Escape($"{key}"), DefaultPlatformsRegexFlags);
2219

2320
/// <summary>
2421
/// Platforms
@@ -67,7 +64,6 @@ private static Regex CreateDefaultPlatformRegex(string key)
6764
new(CreateDefaultPlatformRegex("gnu"), "GNU/Linux", HttpUserAgentPlatformType.Linux),
6865
new(CreateDefaultPlatformRegex("unix"), "Unknown Unix OS", HttpUserAgentPlatformType.Unix),
6966
new(CreateDefaultPlatformRegex("symbian"), "Symbian OS", HttpUserAgentPlatformType.Symbian),
70-
new(CreateDefaultPlatformRegex("symbian"), "Symbian OS", HttpUserAgentPlatformType.Symbian),
7167
];
7268

7369
/// <summary>

src/MyCSharp.HttpUserAgentParser/HttpUserAgentType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ public enum HttpUserAgentType : byte
1818
/// <summary>
1919
/// Robot
2020
/// </summary>
21-
Robot,
21+
Robot
2222
}

0 commit comments

Comments
 (0)