Skip to content

Commit 4827b77

Browse files
committed
remove leftover commented #ifs
1 parent af42776 commit 4827b77

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Achievements.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ namespace BizHawk.Client.EmuHawk
66
{
77
public partial class RCheevos
88
{
9-
// #if false
109
private readonly RCheevosAchievementListForm _cheevoListForm = new();
11-
// #endif
1210

1311
private sealed class CheevoUnlockRequest : RCheevoHttpRequest
1412
{

src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Leaderboards.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ namespace BizHawk.Client.EmuHawk
44
{
55
public partial class RCheevos
66
{
7-
// #if false
87
private readonly RCheevosLeaderboardListForm _lboardListForm = new();
9-
// #endif
108

119
private sealed class LboardTriggerRequest : RCheevoHttpRequest
1210
{

src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ private void BuildMenu(ToolStripItemCollection raDropDownItems)
188188
_gameInfoForm.Show();
189189
};
190190
raDropDownItems.Add(viewGameInfoItem);
191-
// #if false
192191
var viewCheevoListItem = new ToolStripMenuItem("View Achievement List");
193192
viewCheevoListItem.Click += (_, _) =>
194193
{
@@ -204,7 +203,6 @@ private void BuildMenu(ToolStripItemCollection raDropDownItems)
204203
_lboardListForm.Show();
205204
};
206205
raDropDownItems.Add(viewLboardListItem);
207-
// #endif
208206
}
209207

210208
protected override void HandleHardcoreModeDisable(string reason)
@@ -266,10 +264,8 @@ public override void Dispose()
266264
_runtime = IntPtr.Zero;
267265
Stop();
268266
_gameInfoForm.Dispose();
269-
// #if false
270267
_cheevoListForm.Dispose();
271268
_lboardListForm.Dispose();
272-
// #endif
273269
_mainForm.QuicksaveLoad -= QuickLoadCallback;
274270
}
275271

@@ -454,10 +450,8 @@ public override void Restart()
454450
_lib.rc_runtime_validate_addresses(_runtime, _eventcb, _validatecb);
455451

456452
_gameInfoForm.Restart(_gameData.Title, _gameData.TotalCheevoPoints(HardcoreMode), CurrentRichPresence ?? "N/A");
457-
// #if false
458453
_cheevoListForm.Restart(_gameData.GameID == 0 ? Array.Empty<Cheevo>() : _gameData.CheevoEnumerable, GetCheevoProgress, () => HardcoreMode);
459454
_lboardListForm.Restart(_gameData.GameID == 0 ? Array.Empty<LBoard>() : _gameData.LBoardEnumerable);
460-
// #endif
461455

462456
Update();
463457

@@ -705,7 +699,6 @@ public override void OnFrameAdvance()
705699
CurrentLboard is null ? "N/A" : $"{CurrentLboard.Description} ({CurrentLboard.Score})",
706700
CurrentRichPresence ?? "N/A");
707701
}
708-
// #if false
709702
if (_cheevoListForm.Visible)
710703
{
711704
_cheevoListForm.OnFrameAdvance(HardcoreMode);
@@ -715,7 +708,6 @@ public override void OnFrameAdvance()
715708
{
716709
_lboardListForm.OnFrameAdvance();
717710
}
718-
// #endif
719711
}
720712
}
721713
}

0 commit comments

Comments
 (0)