aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-12-23 21:20:41 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-12-23 21:20:41 +0300
commit755d556f097789f662c43902f5fb59d40138a6f8 (patch)
tree3a86ab5cef37d899af84aaad59d1d7d586b6cdf8
parent0ccbf29382b43d19f7ea0d1f4b5841149137842d (diff)
Delete SkuExtensions class
-rw-r--r--src/Models/SkuExtensions.cs12
-rw-r--r--src/Models/SourcePriceList.cs2
-rw-r--r--src/RhSolutions.csproj1
3 files changed, 1 insertions, 14 deletions
diff --git a/src/Models/SkuExtensions.cs b/src/Models/SkuExtensions.cs
deleted file mode 100644
index 160dc16..0000000
--- a/src/Models/SkuExtensions.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Text.RegularExpressions;
-
-namespace RhSolutions.Models
-{
- static class SkuExtensions
- {
- public static bool IsRehauSku(this string line)
- {
- return Regex.IsMatch(line, @"^[1]\d{6}[1]\d{3}$");
- }
- }
-} \ No newline at end of file
diff --git a/src/Models/SourcePriceList.cs b/src/Models/SourcePriceList.cs
index d210c10..ed860b4 100644
--- a/src/Models/SourcePriceList.cs
+++ b/src/Models/SourcePriceList.cs
@@ -87,7 +87,7 @@ namespace RhSolutions.Models
if (group == null || name == null || sku == null)
continue;
- if (!sku.ToString().IsRehauSku())
+ if (!Sku.TryParse(sku.ToString(), out _))
continue;
Product p = new Product
diff --git a/src/RhSolutions.csproj b/src/RhSolutions.csproj
index d88943e..c46d489 100644
--- a/src/RhSolutions.csproj
+++ b/src/RhSolutions.csproj
@@ -83,7 +83,6 @@
<Compile Include="Models\StatusbarBase.cs" />
<Compile Include="Models\Dialog.cs" />
<Compile Include="Services\RegistryUtil.cs" />
- <Compile Include="Models\SkuExtensions.cs" />
<Compile Include="Models\ProgressBar.cs" />
<Compile Include="Models\ResultBar.cs" />
<Compile Include="Controllers\CombineTool.cs" />