Skip to content

Commit c7b56dc

Browse files
committed
remove redundant deconstructors
1 parent bfad21b commit c7b56dc

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

FlashpointSecurePlayer/EnvironmentVariables.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ public class EnvironmentVariables : Modifications {
2222

2323
public EnvironmentVariables(EventHandler importStart, EventHandler importStop) : base(importStart, importStop) { }
2424

25-
~EnvironmentVariables() {
26-
try {
27-
Deactivate();
28-
} catch {
29-
// fail silently
30-
}
31-
}
32-
3325
private string GetComparableName(string name) {
3426
if (name == null) {
3527
return name;

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -191,20 +191,6 @@ private Dictionary<string, List<WOW64Key>> WOW64KeyLists {
191191
public RegistryStates(EventHandler importStart, EventHandler importStop) : base(importStart, importStop) { }
192192

193193
~RegistryStates() {
194-
if (ImportStarted) {
195-
try {
196-
StopImport();
197-
} catch {
198-
// fail silently
199-
}
200-
}
201-
202-
try {
203-
Deactivate();
204-
} catch {
205-
// fail silently
206-
}
207-
208194
if (resumeEventWaitHandle != null) {
209195
resumeEventWaitHandle.Dispose();
210196
resumeEventWaitHandle = null;

0 commit comments

Comments
 (0)