|
From: <fab...@us...> - 2011-06-15 20:04:53
|
Revision: 5931
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5931&view=rev
Author: fabiomaulo
Date: 2011-06-15 20:04:47 +0000 (Wed, 15 Jun 2011)
Log Message:
-----------
Removed dead constructor
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs
trunk/nhibernate/src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs
Modified: trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs 2011-06-15 19:38:45 UTC (rev 5930)
+++ trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs 2011-06-15 20:04:47 UTC (rev 5931)
@@ -52,8 +52,6 @@
public QueryParameters() : this(ArrayHelper.EmptyTypeArray, ArrayHelper.EmptyObjectArray) {}
- public QueryParameters(IType type, object value) : this(new[] {type}, new[] {value}) {}
-
public QueryParameters(IType[] positionalParameterTypes, object[] postionalParameterValues, object optionalObject, string optionalEntityName, object optionalObjectId)
: this(positionalParameterTypes, postionalParameterValues)
{
@@ -78,9 +76,10 @@
_tempPagingParameterIndexes = tempPagingParameterIndexes;
}
- public QueryParameters(IType[] positionalParameterTypes, object[] positionalParameterValues, IDictionary<string, TypedValue> namedParameters, IDictionary<string, LockMode> lockModes, RowSelection rowSelection, bool isReadOnlyInitialized, bool readOnly, bool cacheable, string cacheRegion, string comment, bool isLookupByNaturalKey, IResultTransformer transformer)
- : this(positionalParameterTypes, positionalParameterValues, namedParameters, lockModes, rowSelection, isReadOnlyInitialized, readOnly, cacheable, cacheRegion, comment, null, transformer)
+ public QueryParameters(IDictionary<string, TypedValue> namedParameters, IDictionary<string, LockMode> lockModes, RowSelection rowSelection, bool isReadOnlyInitialized, bool readOnly, bool cacheable, string cacheRegion, string comment, bool isLookupByNaturalKey, IResultTransformer transformer)
+ : this(ArrayHelper.EmptyTypeArray, ArrayHelper.EmptyObjectArray, namedParameters, lockModes, rowSelection, isReadOnlyInitialized, readOnly, cacheable, cacheRegion, comment, null, transformer)
{
+ // used by CriteriaTranslator
NaturalKeyLookup = isLookupByNaturalKey;
}
Modified: trunk/nhibernate/src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs 2011-06-15 19:38:45 UTC (rev 5930)
+++ trunk/nhibernate/src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs 2011-06-15 20:04:47 UTC (rev 5931)
@@ -134,8 +134,6 @@
return
new QueryParameters(
- new IType[0],
- new object[0],
queryNamedParameters,
lockModes,
selection,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|