Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused NH21 build condition #673

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/FluentNHibernate/Cfg/Db/SQLAnywhereConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ public class SQLAnywhereConfiguration : PersistenceConfiguration<SQLAnywhereConf
{
protected SQLAnywhereConfiguration()
{
#if NH21
Driver<ASA10ClientDriver>();
#else
Driver<SybaseSQLAnywhereDriver>();
#endif
}

public static SQLAnywhereConfiguration SQLAnywhere9 => new SQLAnywhereConfiguration().Dialect<SybaseASA9Dialect>();

#if !NH21
public static SQLAnywhereConfiguration SQLAnywhere10 => new SQLAnywhereConfiguration().Dialect<SybaseSQLAnywhere10Dialect>();

public static SQLAnywhereConfiguration SQLAnywhere11 => new SQLAnywhereConfiguration().Dialect<SybaseSQLAnywhere11Dialect>();
#endif

public static SQLAnywhereConfiguration SQLAnywhere12 => new SQLAnywhereConfiguration().Dialect<SybaseSQLAnywhere12Dialect>().Driver<SybaseSQLAnywhereDotNet4Driver>();

Expand Down
4 changes: 0 additions & 4 deletions src/FluentNHibernate/Cfg/FluentConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ internal FluentConfiguration()
internal FluentConfiguration(Configuration cfg)
{
this.Configuration = cfg;

#if NH21
this.ProxyFactoryFactory(DefaultProxyFactoryFactoryClassName);
#endif
}

internal Configuration Configuration { get; }
Expand Down