From 0a8e6c2a0640be1e21da0112f41dd1ad5fdac504 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 14 Dec 2014 14:04:20 -0800 Subject: [PATCH] Remove some unused functions. --- Core/HLE/sceFont.cpp | 12 ------------ Core/HLE/sceKernelInterrupt.cpp | 5 ----- Core/HLE/sceUtility.cpp | 10 ---------- 3 files changed, 27 deletions(-) diff --git a/Core/HLE/sceFont.cpp b/Core/HLE/sceFont.cpp index 42b255125..be1a77d4a 100644 --- a/Core/HLE/sceFont.cpp +++ b/Core/HLE/sceFont.cpp @@ -679,18 +679,6 @@ static void __LoadInternalFonts() { } } -static Style FontStyleFromString(const std::string &str) { - if (str == "Regular") - return FONT_STYLE_REGULAR; - else if (str == "Italic") - return FONT_STYLE_ITALIC; - else if (str == "Bold") - return FONT_STYLE_BOLD; - else if (str == "Bold Italic") - return FONT_STYLE_BOLD_ITALIC; - return FONT_STYLE_REGULAR; -} - int GetInternalFontIndex(Font *font) { for (size_t i = 0; i < internalFonts.size(); i++) { if (internalFonts[i] == font) diff --git a/Core/HLE/sceKernelInterrupt.cpp b/Core/HLE/sceKernelInterrupt.cpp index c2bb0598d..58513b6f7 100644 --- a/Core/HLE/sceKernelInterrupt.cpp +++ b/Core/HLE/sceKernelInterrupt.cpp @@ -302,11 +302,6 @@ bool __IsInInterrupt() return inInterrupt; } -static bool __CanExecuteInterrupt() -{ - return !inInterrupt; -} - void InterruptState::save() { __KernelSaveContext(&savedCpu, true); diff --git a/Core/HLE/sceUtility.cpp b/Core/HLE/sceUtility.cpp index c14770cf8..f9a3b3c79 100644 --- a/Core/HLE/sceUtility.cpp +++ b/Core/HLE/sceUtility.cpp @@ -116,16 +116,6 @@ void __UtilityShutdown() gamedataInstallDialog.Shutdown(true); } -static int __UtilityGetStatus() -{ - if (currentDialogType == UTILITY_DIALOG_NONE) { - return 0; - } else { - WARN_LOG(SCEUTILITY, "__UtilityGetStatus() Faked dialog : wrong dialog type"); - return SCE_ERROR_UTILITY_WRONG_TYPE; - } -} - static int sceUtilitySavedataInitStart(u32 paramAddr) { if (currentDialogActive && currentDialogType != UTILITY_DIALOG_SAVEDATA)