mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Removed all destructors since they were a very bad idea to implement
This commit is contained in:
@@ -70,10 +70,7 @@ namespace mRemoteNG.Config.Connections
|
||||
public event UpdateCheckFinishedEventHandler UpdateCheckFinished;
|
||||
public event ConnectionsUpdateAvailableEventHandler ConnectionsUpdateAvailable;
|
||||
|
||||
~RemoteConnectionsSyncronizer()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
|
||||
@@ -101,12 +101,6 @@ namespace mRemoteNG.Config.Connections
|
||||
_lastUpdateTime = _lastDatabaseUpdateTime;
|
||||
}
|
||||
|
||||
|
||||
~SqlConnectionsUpdateChecker()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
|
||||
@@ -14,11 +14,6 @@ namespace mRemoteNG.Config.DataProviders
|
||||
SqlDatabaseConnector = sqlDatabaseConnector;
|
||||
}
|
||||
|
||||
~SqlDataProvider()
|
||||
{
|
||||
SqlDatabaseConnector.Dispose();
|
||||
}
|
||||
|
||||
public DataTable Load()
|
||||
{
|
||||
var dataTable = new DataTable();
|
||||
|
||||
@@ -21,11 +21,6 @@ namespace mRemoteNG.Config.DatabaseConnectors
|
||||
Initialize();
|
||||
}
|
||||
|
||||
~SqlDatabaseConnector()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
BuildSqlConnectionString();
|
||||
|
||||
Reference in New Issue
Block a user