Skip to content

Commit 6abb744

Browse files
committed
Remove unused useLastIndex parameter
1 parent bc99fed commit 6abb744

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/NHibernate/Persister/Entity/AbstractEntityPersister.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ protected virtual bool IsIdOfTable(int property, int table)
11201120

11211121
protected abstract int GetSubclassPropertyTableNumber(int i);
11221122

1123-
internal int GetSubclassPropertyTableNumber(string propertyName, string entityName, bool useLastIndex = false)
1123+
internal int GetSubclassPropertyTableNumber(string propertyName, string entityName)
11241124
{
11251125
var type = propertyMapping.ToType(propertyName);
11261126
if (type.IsAssociationType && ((IAssociationType) type).UseLHSPrimaryKey)

src/NHibernate/Persister/Entity/SingleTableEntityPersister.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ protected override void AddDiscriminatorToInsert(SqlInsertBuilder insert)
696696
protected override bool IsSubclassPropertyDeferred(string propertyName, string entityName)
697697
{
698698
return
699-
hasSequentialSelects && IsSubclassTableSequentialSelect(base.GetSubclassPropertyTableNumber(propertyName, entityName, false));
699+
hasSequentialSelects && IsSubclassTableSequentialSelect(base.GetSubclassPropertyTableNumber(propertyName, entityName));
700700
}
701701

702702
protected override bool IsPropertyDeferred(int propertyIndex)
@@ -713,9 +713,9 @@ public override bool HasSequentialSelect
713713

714714
//Since v5.3
715715
[Obsolete("This method has no more usage in NHibernate and will be removed in a future version.")]
716-
public new int GetSubclassPropertyTableNumber(string propertyName, string entityName, bool useLastIndex = false)
716+
public new int GetSubclassPropertyTableNumber(string propertyName, string entityName)
717717
{
718-
return base.GetSubclassPropertyTableNumber(propertyName, entityName, useLastIndex);
718+
return base.GetSubclassPropertyTableNumber(propertyName, entityName);
719719
}
720720

721721
//Since v5.3

0 commit comments

Comments
 (0)