Skip to content

Commit 25d0504

Browse files
committed
Remove unused session param
1 parent ac6c8fa commit 25d0504

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/NHibernate.DomainModel/CustomPersister.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public object CreateProxy(object id, ISessionImplementor session)
399399
throw new NotSupportedException("no proxy for this class");
400400
}
401401

402-
public bool? IsTransient(object obj, ISessionImplementor session)
402+
public bool? IsTransient(object obj)
403403
{
404404
return ((Custom) obj).Id == null;
405405
}

src/NHibernate/Engine/ForeignKeys.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public static bool IsNotTransientSlow(string entityName, object entity, ISession
184184
// let the interceptor inspect the instance to decide
185185
// let the persister inspect the instance to decide
186186
return session.Interceptor.IsTransient(entity) ??
187-
session.GetEntityPersister(entityName, entity).IsTransient(entity, session);
187+
session.GetEntityPersister(entityName, entity).IsTransient(entity);
188188
}
189189

190190
/// <summary>

src/NHibernate/Persister/Entity/AbstractEntityPersister.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4193,7 +4193,7 @@ public virtual void AfterReassociate(object entity, ISessionImplementor session)
41934193
}
41944194
}
41954195

4196-
public virtual bool? IsTransient(object entity, ISessionImplementor session)
4196+
public virtual bool? IsTransient(object entity)
41974197
{
41984198
object id;
41994199
if (CanExtractIdOutOfEntity)

src/NHibernate/Persister/Entity/IEntityPersister.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void Update(
458458
object CreateProxy(object id, ISessionImplementor session);
459459

460460
/// <summary> Is this a new transient instance?</summary>
461-
bool? IsTransient(object obj, ISessionImplementor session);
461+
bool? IsTransient(object obj);
462462

463463
/// <summary> Return the values of the insertable properties of the object (including backrefs)</summary>
464464
object[] GetPropertyValuesToInsert(object obj, IDictionary mergeMap, ISessionImplementor session);

0 commit comments

Comments
 (0)