Skip to content

Commit

Permalink
Core: Remove some unused coreState funcs.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed May 28, 2018
1 parent da719c8 commit 4df7395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
17 changes: 3 additions & 14 deletions Core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,21 @@
#include "thread/threadutil.h"
#include "profiler/profiler.h"

#include "Common/GraphicsContext.h"
#include "Core/Core.h"
#include "Core/Config.h"
#include "Core/Host.h"
#include "Core/MemMap.h"
#include "Core/SaveState.h"
#include "Core/System.h"
#include "Core/Debugger/Breakpoints.h"
#include "Core/MIPS/MIPS.h"
#include "Common/GraphicsContext.h"

#ifdef _WIN32
#include "Common/CommonWindows.h"
#include "Windows/InputDevice.h"
#endif

#include "Host.h"

#include "Core/Debugger/Breakpoints.h"

// Time until we stop considering the core active without user input.
// Should this be configurable? 2 hours currently.
Expand Down Expand Up @@ -86,16 +85,6 @@ void Core_NotifyLifecycle(CoreLifecycle stage) {
}
}

void Core_ErrorPause() {
Core_UpdateState(CORE_ERROR);
}

void Core_Halt(const char *msg) {
Core_EnableStepping(true);
ERROR_LOG(CPU, "CPU HALTED : %s",msg);
_dbg_update_();
}

void Core_Stop() {
Core_UpdateState(CORE_POWERDOWN);
m_StepCond.notify_all();
Expand Down
2 changes: 0 additions & 2 deletions Core/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ void UpdateRunLoop();

void Core_Run(GraphicsContext *ctx);
void Core_Stop();
void Core_ErrorPause();
// For platforms that don't call Core_Run
void Core_SetGraphicsContext(GraphicsContext *ctx);

Expand All @@ -50,7 +49,6 @@ enum class CoreLifecycle {
typedef void (* CoreLifecycleFunc)(CoreLifecycle stage);
void Core_ListenLifecycle(CoreLifecycleFunc func);
void Core_NotifyLifecycle(CoreLifecycle stage);
void Core_Halt(const char *msg);

bool Core_IsStepping();

Expand Down
2 changes: 1 addition & 1 deletion Core/CoreTiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int RegisterEvent(const char *name, TimedCallback callback)
void AntiCrashCallback(u64 userdata, int cyclesLate)
{
ERROR_LOG(SAVESTATE, "Savestate broken: an unregistered event was called.");
Core_Halt("invalid timing events");
Core_EnableStepping(true);
}

void RestoreRegisterEvent(int event_type, const char *name, TimedCallback callback)
Expand Down

0 comments on commit 4df7395

Please sign in to comment.