remove redundant private

This commit is contained in:
vabenil 2022-11-08 15:06:24 +02:00
parent 760880e87f
commit 66ff3fe9a5
1 changed files with 9 additions and 11 deletions

View File

@ -928,7 +928,6 @@ string toFieldName(T)(string s, bool isPlural = false)
+/ +/
template one_to_many(alias fk_field, string t2 = null, string t1 = null) template one_to_many(alias fk_field, string t2 = null, string t1 = null)
{ {
private {
alias T1 = __traits(parent, fk_field); alias T1 = __traits(parent, fk_field);
static assert( static assert(
@ -941,7 +940,6 @@ template one_to_many(alias fk_field, string t2 = null, string t1 = null)
immutable string t2_name = toFieldName!T2(t2); immutable string t2_name = toFieldName!T2(t2);
immutable string t1_name = toFieldName!T1(t1, true); immutable string t1_name = toFieldName!T1(t1, true);
}
static immutable string one_to_many = static immutable string one_to_many =
T2.stringof~` get_`~t2_name~`(`~T1.stringof~` row, Database db) T2.stringof~` get_`~t2_name~`(`~T1.stringof~` row, Database db)