Skip to content

Commit

Permalink
Remove this as not being used anymore by bw
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen-H2O committed Sep 28, 2024
1 parent d93e052 commit 62f34fa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/playermanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "entity/lights.h"
#include "entity/cparticlesystem.h"
#include "gamesystem.h"
#include "user_preferences.h"

#define DECAL_PREF_KEY_NAME "hide_decals"
#define HIDE_DISTANCE_PREF_KEY_NAME "hide_distance"
Expand Down
12 changes: 0 additions & 12 deletions src/user_preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ float CUserPreferencesSystem::GetPreferenceFloat(int iSlot, const char* sKey, fl
return V_StringToFloat32(pszPreferenceValue, fDefaultValue);
}

float CUserPreferencesSystem::GetPreferenceBool(int iSlot, const char* sKey, bool bDefaultValue)
{
return V_StringToBool(GetPreference(iSlot, sKey, ""), bDefaultValue);
}

void CUserPreferencesSystem::SetPreference(int iSlot, const char* sKey, const char* sValue)
{
uint32 iKeyHash = hash_32_fnv1a_const(sKey);
Expand Down Expand Up @@ -226,13 +221,6 @@ void CUserPreferencesSystem::SetPreferenceFloat(int iSlot, const char* sKey, flo
SetPreference(iSlot, sKey, (const char*) sPreferenceString);
}

void CUserPreferencesSystem::SetPreferenceBool(int iSlot, const char* sKey, bool bValue)
{
char sPreferenceString[MAX_PREFERENCE_LENGTH];
V_snprintf(sPreferenceString, sizeof(sPreferenceString), "%b", bValue);
SetPreference(iSlot, sKey, (const char*) sPreferenceString);
}

bool CUserPreferencesSystem::CheckPreferencesLoaded(int iSlot)
{
ZEPlayer* player = g_playerManager->GetPlayer(CPlayerSlot(iSlot));
Expand Down
2 changes: 0 additions & 2 deletions src/user_preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ class CUserPreferencesSystem
const char* GetPreference(int iSlot, const char* sKey, const char* sDefaultValue = "");
int GetPreferenceInt(int iSlot, const char* sKey, int iDefaultValue = 0);
float GetPreferenceFloat(int iSlot, const char* sKey, float fDefaultValue = 0.0f);
float GetPreferenceBool(int iSlot, const char* sKey, bool bDefaultValue = false);
void SetPreference(int iSlot, const char* sKey, const char* sValue);
void SetPreferenceInt(int iSlot, const char* sKey, int iValue);
void SetPreferenceFloat(int iSlot, const char* sKey, float fValue);
void SetPreferenceBool(int iSlot, const char* sKey, bool bValue);
bool CheckPreferencesLoaded(int iSlot);
bool PutPreferences(int iSlot, uint64 iSteamId, CUtlMap<uint32, CPreferenceValue> &preferenceData);
void OnPutPreferences(int iSlot);
Expand Down

0 comments on commit 62f34fa

Please sign in to comment.