mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
refactor: remove some unused code
This commit is contained in:
parent
1918c56937
commit
04d78e3348
8 changed files with 17 additions and 204 deletions
|
|
@ -75,12 +75,4 @@ public static class PartialExt
|
|||
|
||||
public static Partial<TOut> Map<TIn, TOut>(this Partial<TIn> pt, Func<TIn, TOut> fn) =>
|
||||
pt.IsPresent ? Partial<TOut>.Present(fn.Invoke(pt.Value)) : Partial<TOut>.Absent;
|
||||
|
||||
public static void Apply<T>(this Partial<T> pt, DynamicParameters bag, QueryBuilder qb, string fieldName)
|
||||
{
|
||||
if (!pt.IsPresent) return;
|
||||
|
||||
bag.Add(fieldName, pt.Value);
|
||||
qb.Variable(fieldName, $"@{fieldName}");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue