Skip to content

Commit 22bd983

Browse files
committed
#27 more clean up of discarded code
1 parent 5e8ccdd commit 22bd983

File tree

2 files changed

+0
-121
lines changed

2 files changed

+0
-121
lines changed

SubSonic/Linq/Extensions/SubSonicEnumerable.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ namespace SubSonic.Linq
77
{
88
public static class SubSonicEnumerable
99
{
10-
//public static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Expression<Func<TSource, bool>> predicate)
11-
//{
12-
// return Enumerable.Where(source, predicate.IsNullThrowArgumentNull(nameof(predicate)).Compile());
13-
//}
14-
1510
public static IEnumerable<TSource> ForEach<TSource>(this IEnumerable<TSource> source, Action<TSource> action)
1611
{
1712
if (source is null)

SubSonic/Linq/Extensions/SubSonicQueryable/EnumerableExtensions.cs

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -35,48 +35,6 @@ public static IQueryable<TSource> ForEach<TSource>(this IQueryable<TSource> sour
3535
return source;
3636
}
3737

38-
//public static bool SequenceEqual<TType>(this IEnumerable<TType> left, IEnumerable<TType> right)
39-
//{
40-
// return Enumerable.SequenceEqual(left, right);
41-
//}
42-
43-
//public static bool SequenceEqual<TType>(this IEnumerable<TType> left, IEnumerable<TType> right, IEqualityComparer<TType> comparer)
44-
//{
45-
// return Enumerable.SequenceEqual(left, right, comparer);
46-
//}
47-
48-
//public static int Count<TSource>(this IEnumerable<TSource> source)
49-
//{
50-
// return Enumerable.Count(source);
51-
//}
52-
53-
//public static int Count<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
54-
//{
55-
// return Enumerable.Count(source, predicate);
56-
//}
57-
58-
//public static TSource[] ToArray<TSource>(this IEnumerable<TSource> sources)
59-
//{
60-
// return Enumerable.ToArray(sources);
61-
//}
62-
63-
64-
65-
//public static bool Any<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
66-
//{
67-
// return Enumerable.Any(source, predicate);
68-
//}
69-
70-
//public static IEnumerable<TSource> Skip<TSource>(this IEnumerable<TSource> source, int count)
71-
//{
72-
// return Enumerable.Skip(source, count);
73-
//}
74-
75-
//public static IEnumerable<TSource> Take<TSource>(this IEnumerable<TSource> source, int count)
76-
//{
77-
// return Enumerable.Take(source, count);
78-
//}
79-
8038
public static IEnumerable<TResult> Select<TResult>(this IEnumerable source, Func<object, TResult> selector)
8139
{
8240
if (source is null)
@@ -98,79 +56,5 @@ public static IEnumerable<TResult> Select<TResult>(this IEnumerable source, Func
9856

9957
return result;
10058
}
101-
102-
//public static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector)
103-
//{
104-
// return Enumerable.Select(source, selector);
105-
//}
106-
107-
//public static IEnumerable<TResult> SelectMany<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, IEnumerable<TResult>> selector)
108-
//{
109-
// return Enumerable.SelectMany(source, selector);
110-
//}
111-
112-
//public static TSource ElementAt<TSource>(this IEnumerable<TSource> source, int index)
113-
//{
114-
// return Enumerable.ElementAt(source, index);
115-
//}
116-
117-
//public static TSource First<TSource>(this IEnumerable<TSource> source)
118-
//{
119-
// return Enumerable.First(source);
120-
//}
121-
122-
//public static TSource First<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
123-
//{
124-
// return Enumerable.First(source, predicate);
125-
//}
126-
127-
//public static TSource FirstOrDefault<TSource>(this IEnumerable<TSource> source)
128-
//{
129-
// return Enumerable.FirstOrDefault(source);
130-
//}
131-
132-
//public static TSource FirstOrDefault<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
133-
//{
134-
// return Enumerable.FirstOrDefault(source, predicate);
135-
//}
136-
137-
//[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1720:Identifier contains type name", Justification = "Microsoft set this standard")]
138-
//public static TSource Single<TSource>(this IEnumerable<TSource> source)
139-
//{
140-
// return Enumerable.Single(source);
141-
//}
142-
143-
//[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1720:Identifier contains type name", Justification = "Microsoft set this standard")]
144-
//public static TSource Single<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
145-
//{
146-
// return Enumerable.Single(source, predicate);
147-
//}
148-
149-
//public static TSource SingleOrDefault<TSource>(this IEnumerable<TSource> source)
150-
//{
151-
// return Enumerable.SingleOrDefault(source);
152-
//}
153-
154-
//public static TResult SingleOrDefault<TSource, TResult>(this IEnumerable<TSource> source)
155-
//{
156-
// TSource single = Enumerable.SingleOrDefault(source);
157-
158-
// if ((object)single is TResult result)
159-
// {
160-
// return result;
161-
// }
162-
163-
// return default(TResult);
164-
//}
165-
166-
//public static TSource SingleOrDefault<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
167-
//{
168-
// return Enumerable.SingleOrDefault(source, predicate);
169-
//}
170-
171-
//public static IEnumerable<TSource> Union<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second)
172-
//{
173-
// return Enumerable.Union(first, second);
174-
//}
17559
}
17660
}

0 commit comments

Comments
 (0)