Skip to content

Commit 355d622

Browse files
committed
Remove some obsolete members
1 parent a1a93f8 commit 355d622

File tree

7 files changed

+0
-81
lines changed

7 files changed

+0
-81
lines changed

Extensions/Xtensive.Orm.Localization/Configuration/Elements/ConfigurationSection.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ namespace Xtensive.Orm.Localization.Configuration
1414
/// </summary>
1515
public class ConfigurationSection : System.Configuration.ConfigurationSection
1616
{
17-
/// <summary>
18-
/// Gets default section name for security configuration.
19-
/// Value is "Xtensive.Orm.Localization".
20-
/// </summary>
21-
[Obsolete("Use Localization.DefaultSectionName instead.")]
22-
public static readonly string DefaultSectionName = "Xtensive.Orm.Localization";
23-
2417
private const string DefaultCultureElementName = "defaultCulture";
2518

2619
/// <summary>

Extensions/Xtensive.Orm.Reprocessing/Configuration/ConfigurationSection.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ namespace Xtensive.Orm.Reprocessing.Configuration
99
/// </summary>
1010
public class ConfigurationSection : System.Configuration.ConfigurationSection
1111
{
12-
/// <summary>
13-
/// Gets default section name for reprocessing configuration.
14-
/// Value is "Xtensive.Orm.Reprocessing".
15-
/// </summary>
16-
[Obsolete("Use ReprocessingConfiguration.DefaultSectionName instead")]
17-
public static readonly string DefaultSectionName = "Xtensive.Orm.Reprocessing";
18-
1912
/// <summary>
2013
/// Gets or sets default transaction open mode.
2114
/// </summary>

Extensions/Xtensive.Orm.Security/Configuration/Elements/ConfigurationSection.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ namespace Xtensive.Orm.Security.Configuration
1414
/// </summary>
1515
public class ConfigurationSection : System.Configuration.ConfigurationSection
1616
{
17-
/// <summary>
18-
/// Gets default section name for security configuration.
19-
/// Value is "Xtensive.Orm.Security".
20-
/// </summary>
21-
[Obsolete("Use SecurityConfiguration.DefaultSectionName instead")]
22-
public static readonly string DefaultSectionName = "Xtensive.Orm.Security";
23-
2417
private const string HashingServiceElementName = "hashingService";
2518
private const string AuthenticationServiceElementName = "authenticationService";
2619

Orm/Xtensive.Orm.Tests/Model/VersionInfoTest.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@ public Domain BuildDomain(string @namespace)
148148
return Domain.Build(configuration);
149149
}
150150

151-
[Test]
152-
[Ignore("")]
153-
[Obsolete]
154-
public void RootOnlyVersionTest()
155-
{
156-
AssertEx.Throws<DomainBuilderException>(() =>
157-
BuildDomain("Xtensive.Orm.Tests.Model.VersionInfoTests.InvalidModel1"));
158-
}
159-
160151
[Test]
161152
public void DenyKeyFieldsTest()
162153
{

Orm/Xtensive.Orm/Orm/WellKnown.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@ public static partial class WellKnown
9494
/// </summary>
9595
public const int MaxGenericKeyLength = 4;
9696

97-
/// <summary>
98-
/// Maximal number of filtering values in an <see cref="IncludeProvider"/>
99-
/// which are to be placed inside a resulted SQL command (as boolean predicate).
100-
/// </summary>
101-
[Obsolete("Use DefaultNumberOfConditions")]
102-
public const int MaxNumberOfConditions = 256;
103-
10497
/// <summary>
10598
/// Default value of maximal number of filtering values in an <see cref="IncludeProvider"/>
10699
/// which are to be placed inside a resulted SQL command (as boolean predicate).

Orm/Xtensive.Orm/Reflection/TypeHelper.cs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public int GetHashCode((Type, Type[]) obj)
5858
private static readonly ConcurrentDictionary<(Type, Type[]), ConstructorInvoker> ConstructorInvokerByTypes =
5959
new(new TypesEqualityComparer());
6060
#endif
61-
private static readonly ConcurrentDictionary<(Type, Type[]), ConstructorInfo> ConstructorInfoByTypes =
62-
new(new TypesEqualityComparer());
6361

6462
private static readonly ConcurrentDictionary<Type, Type[]> OrderedInterfaces = new();
6563

@@ -672,27 +670,6 @@ internal static ConstructorInvoker GetSingleConstructorInvoker(this Type type, T
672670
? ConstructorInvoker.Create(ctor)
673671
: throw new InvalidOperationException(Strings.ExGivenTypeHasNoOrMoreThanOneCtorWithGivenParameters));
674672

675-
#endif
676-
/// <summary>
677-
/// Gets the public constructor of type <paramref name="type"/>
678-
/// accepting specified <paramref name="argumentTypes"/>.
679-
/// </summary>
680-
/// <param name="type">The type to get the constructor for.</param>
681-
/// <param name="argumentTypes">The arguments.</param>
682-
/// <returns>
683-
/// Appropriate constructor, if a single match is found;
684-
/// otherwise throws <see cref="InvalidOperationException"/>.
685-
/// </returns>
686-
/// <exception cref="InvalidOperationException">
687-
/// The <paramref name="type"/> has no constructors suitable for <paramref name="argumentTypes"/>
688-
/// -or- more than one such constructor.
689-
/// </exception>
690-
[Obsolete]// obsolete to safely make it internal later on or delete
691-
public static ConstructorInfo GetSingleConstructor(this Type type, Type[] argumentTypes) =>
692-
ConstructorInfoByTypes.GetOrAdd((type, argumentTypes), ConstructorExtractor)
693-
?? throw new InvalidOperationException(Strings.ExGivenTypeHasNoOrMoreThanOneCtorWithGivenParameters);
694-
695-
#if NET8_0_OR_GREATER
696673
/// <summary>
697674
/// Gets <see cref="ConstructorInvoker"/> of the public constructor of type <paramref name="type"/>
698675
/// accepting specified <paramref name="argumentTypes"/>.
@@ -709,20 +686,6 @@ internal static ConstructorInvoker GetSingleConstructorInvokerOrDefault(this Typ
709686
static t => ConstructorExtractor(t) is ConstructorInfo ctor ? ConstructorInvoker.Create(ctor) : null);
710687

711688
#endif
712-
/// <summary>
713-
/// Gets the public constructor of type <paramref name="type"/>
714-
/// accepting specified <paramref name="argumentTypes"/>.
715-
/// </summary>
716-
/// <param name="type">The type to get the constructor for.</param>
717-
/// <param name="argumentTypes">The arguments.</param>
718-
/// <returns>
719-
/// Appropriate constructor, if a single match is found;
720-
/// otherwise, <see langword="null"/>.
721-
/// </returns>
722-
[CanBeNull]
723-
[Obsolete]// obsolete to safely make it internal later on
724-
public static ConstructorInfo GetSingleConstructorOrDefault(this Type type, Type[] argumentTypes) =>
725-
ConstructorInfoByTypes.GetOrAdd((type, argumentTypes), ConstructorExtractor);
726689

727690
private static readonly Func<(Type, Type[]), ConstructorInfo> ConstructorExtractor = t => {
728691
(var type, var argumentTypes) = t;

Orm/Xtensive.Orm/Sql/Dml/Statements/SqlInsert.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ public class SqlInsert : SqlQueryStatement, ISqlCompileUnit
1818
/// <value>The table to change.</value>
1919
public SqlTableRef Into { get; set; }
2020

21-
/// <summary>
22-
/// Gets the values.
23-
/// </summary>
24-
/// <value>The values.</value>
25-
[Obsolete("No longer in use. Use ValueRows.Add to add values")]
26-
public Dictionary<SqlColumn, SqlExpression> Values { get; private set; } = new();
27-
2821
/// <summary>
2922
/// Gets rows of values.
3023
/// </summary>

0 commit comments

Comments
 (0)