Skip to content

Commit f94b1df

Browse files
committed
Remove Unused Code
1 parent dc03cf3 commit f94b1df

File tree

8 files changed

+0
-171
lines changed

8 files changed

+0
-171
lines changed
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Text;
43

54
namespace ClassifiedAds.CrossCuttingConcerns.ExtensionMethods;
65

@@ -29,30 +28,4 @@ public static Type MakeGenericTypeSafe(this Type type, params Type[] typeArgumen
2928
? type.MakeGenericType(typeArguments)
3029
: type;
3130
}
32-
33-
public static string GenerateMappingCode(this Type type)
34-
{
35-
var names = type.GetProperties().Select(x => x.Name);
36-
37-
var text1 = new StringBuilder();
38-
var text2 = new StringBuilder();
39-
var text3 = new StringBuilder();
40-
var text4 = new StringBuilder();
41-
42-
foreach (var name in names)
43-
{
44-
text1.Append($"a.{name} = {name};{Environment.NewLine}");
45-
text2.Append($"{name} = b.{name};{Environment.NewLine}");
46-
text3.Append($"{name} = b.{name},{Environment.NewLine}");
47-
text4.Append($"a.{name} = b.{name};{Environment.NewLine}");
48-
}
49-
50-
return text1.ToString()
51-
+ "--------------------------------------" + Environment.NewLine
52-
+ text2.ToString()
53-
+ "--------------------------------------" + Environment.NewLine
54-
+ text3.ToString()
55-
+ "--------------------------------------" + Environment.NewLine
56-
+ text4.ToString();
57-
}
5831
}
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Text;
43

54
namespace ClassifiedAds.CrossCuttingConcerns.ExtensionMethods;
65

@@ -29,30 +28,4 @@ public static Type MakeGenericTypeSafe(this Type type, params Type[] typeArgumen
2928
? type.MakeGenericType(typeArguments)
3029
: type;
3130
}
32-
33-
public static string GenerateMappingCode(this Type type)
34-
{
35-
var names = type.GetProperties().Select(x => x.Name);
36-
37-
var text1 = new StringBuilder();
38-
var text2 = new StringBuilder();
39-
var text3 = new StringBuilder();
40-
var text4 = new StringBuilder();
41-
42-
foreach (var name in names)
43-
{
44-
text1.Append($"a.{name} = {name};{Environment.NewLine}");
45-
text2.Append($"{name} = b.{name};{Environment.NewLine}");
46-
text3.Append($"{name} = b.{name},{Environment.NewLine}");
47-
text4.Append($"a.{name} = b.{name};{Environment.NewLine}");
48-
}
49-
50-
return text1.ToString()
51-
+ "--------------------------------------" + Environment.NewLine
52-
+ text2.ToString()
53-
+ "--------------------------------------" + Environment.NewLine
54-
+ text3.ToString()
55-
+ "--------------------------------------" + Environment.NewLine
56-
+ text4.ToString();
57-
}
5831
}

src/Microservices/Common/ClassifiedAds.CrossCuttingConcerns/Caching/ICache.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Text;
43

54
namespace ClassifiedAds.CrossCuttingConcerns.ExtensionMethods;
65

@@ -29,30 +28,4 @@ public static Type MakeGenericTypeSafe(this Type type, params Type[] typeArgumen
2928
? type.MakeGenericType(typeArguments)
3029
: type;
3130
}
32-
33-
public static string GenerateMappingCode(this Type type)
34-
{
35-
var names = type.GetProperties().Select(x => x.Name);
36-
37-
var text1 = new StringBuilder();
38-
var text2 = new StringBuilder();
39-
var text3 = new StringBuilder();
40-
var text4 = new StringBuilder();
41-
42-
foreach (var name in names)
43-
{
44-
text1.Append($"a.{name} = {name};{Environment.NewLine}");
45-
text2.Append($"{name} = b.{name};{Environment.NewLine}");
46-
text3.Append($"{name} = b.{name},{Environment.NewLine}");
47-
text4.Append($"a.{name} = b.{name};{Environment.NewLine}");
48-
}
49-
50-
return text1.ToString()
51-
+ "--------------------------------------" + Environment.NewLine
52-
+ text2.ToString()
53-
+ "--------------------------------------" + Environment.NewLine
54-
+ text3.ToString()
55-
+ "--------------------------------------" + Environment.NewLine
56-
+ text4.ToString();
57-
}
5831
}

src/ModularMonolith/ClassifiedAds.CrossCuttingConcerns/Caching/ICache.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Text;
43

54
namespace ClassifiedAds.CrossCuttingConcerns.ExtensionMethods;
65

@@ -29,30 +28,4 @@ public static Type MakeGenericTypeSafe(this Type type, params Type[] typeArgumen
2928
? type.MakeGenericType(typeArguments)
3029
: type;
3130
}
32-
33-
public static string GenerateMappingCode(this Type type)
34-
{
35-
var names = type.GetProperties().Select(x => x.Name);
36-
37-
var text1 = new StringBuilder();
38-
var text2 = new StringBuilder();
39-
var text3 = new StringBuilder();
40-
var text4 = new StringBuilder();
41-
42-
foreach (var name in names)
43-
{
44-
text1.Append($"a.{name} = {name};{Environment.NewLine}");
45-
text2.Append($"{name} = b.{name};{Environment.NewLine}");
46-
text3.Append($"{name} = b.{name},{Environment.NewLine}");
47-
text4.Append($"a.{name} = b.{name};{Environment.NewLine}");
48-
}
49-
50-
return text1.ToString()
51-
+ "--------------------------------------" + Environment.NewLine
52-
+ text2.ToString()
53-
+ "--------------------------------------" + Environment.NewLine
54-
+ text3.ToString()
55-
+ "--------------------------------------" + Environment.NewLine
56-
+ text4.ToString();
57-
}
5831
}

src/Monolith/ClassifiedAds.CrossCuttingConcerns/Caching/ICache.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Text;
43

54
namespace ClassifiedAds.CrossCuttingConcerns.ExtensionMethods;
65

@@ -29,30 +28,4 @@ public static Type MakeGenericTypeSafe(this Type type, params Type[] typeArgumen
2928
? type.MakeGenericType(typeArguments)
3029
: type;
3130
}
32-
33-
public static string GenerateMappingCode(this Type type)
34-
{
35-
var names = type.GetProperties().Select(x => x.Name);
36-
37-
var text1 = new StringBuilder();
38-
var text2 = new StringBuilder();
39-
var text3 = new StringBuilder();
40-
var text4 = new StringBuilder();
41-
42-
foreach (var name in names)
43-
{
44-
text1.Append($"a.{name} = {name};{Environment.NewLine}");
45-
text2.Append($"{name} = b.{name};{Environment.NewLine}");
46-
text3.Append($"{name} = b.{name},{Environment.NewLine}");
47-
text4.Append($"a.{name} = b.{name};{Environment.NewLine}");
48-
}
49-
50-
return text1.ToString()
51-
+ "--------------------------------------" + Environment.NewLine
52-
+ text2.ToString()
53-
+ "--------------------------------------" + Environment.NewLine
54-
+ text3.ToString()
55-
+ "--------------------------------------" + Environment.NewLine
56-
+ text4.ToString();
57-
}
5831
}

0 commit comments

Comments
 (0)