Skip to content

Commit

Permalink
kill more useless preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 10, 2017
1 parent 3e18ec0 commit c0d754e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions src/MusicWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
#include "FilterManager.h"
#include "RageString.h"

static Preference<bool> g_bMoveRandomToEnd( "MoveRandomToEnd", false );
static Preference<bool> g_bPrecacheAllSorts( "PreCacheAllWheelSorts", false);

#define NUM_WHEEL_ITEMS (static_cast<int>(ceil(NUM_WHEEL_ITEMS_TO_DRAW+2)))
#define WHEEL_TEXT(s) THEME->GetString( "MusicWheel", ssprintf("%sText",s.c_str()) );
#define CUSTOM_ITEM_WHEEL_TEXT(s) THEME->GetString( "MusicWheel", ssprintf("CustomItem%sText",s.c_str()) );
Expand Down Expand Up @@ -111,14 +108,6 @@ void MusicWheel::BeginScreen()
m_WheelItemDatasStatus[so]=NEEDREFILTER;

}

if(g_bPrecacheAllSorts) {
readyWheelItemsData(so, false, "");
times += ssprintf( "%i:%.3f ", so, timer.GetDeltaTime() );
}
}
if(g_bPrecacheAllSorts) {
LOG->Trace( "MusicWheel sorting took: %s", times.c_str() );
}

// Set m_LastModeMenuItem to the first item that matches the current mode. (Do this
Expand Down
1 change: 0 additions & 1 deletion src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ static Preference<float> m_fTimingWindowAdd ( "TimingWindowAdd", 0 );
static Preference1D<float> m_fTimingWindowSeconds( TimingWindowSecondsInit, NUM_TimingWindow );
static Preference<float> m_fTimingWindowJump ( "TimingWindowJump", 0.25 );
static Preference<float> m_fMaxInputLatencySeconds ( "MaxInputLatencySeconds", 0.0 );
static Preference<bool> g_bEnableAttackSoundPlayback ( "EnableAttackSounds", true );
static Preference<bool> g_bEnableMineSoundPlayback ( "EnableMineHitSound", true );

/** @brief How much life is in a hold note when you start on it? */
Expand Down
2 changes: 0 additions & 2 deletions src/ProfileManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ static void DefaultLocalProfileIDInit( size_t /*PlayerNumber*/ i, RString &sName
defaultValueOut = "";
}

Preference<bool> ProfileManager::m_bProfileStepEdits( "ProfileStepEdits", true );
Preference1D<RString> ProfileManager::m_sDefaultLocalProfileID( DefaultLocalProfileIDInit, NUM_PLAYERS );

const RString USER_PROFILES_DIR = "/Save/LocalProfiles/";
Expand Down Expand Up @@ -360,7 +359,6 @@ void ProfileManager::RefreshLocalProfilesFromDisk(LoadingWindow* ld)
add_category_to_global_list(categorized_profiles[ProfileType_Test]);
FOREACH(DirAndProfile, g_vLocalProfile, curr)
{
currentlyloadingprofile = curr->sDir.substr(1);
curr->profile.LoadAllFromDir(curr->sDir, PREFSMAN->m_bSignProfileData, ld);
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/ProfileManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ class ProfileManager
// Lua
void PushSelf( lua_State *L );

static Preference<bool> m_bProfileStepEdits;
static Preference<bool> m_bProfileCourseEdits;
static Preference1D<RString> m_sDefaultLocalProfileID;
RString currentlyloadingprofile;

private:
ProfileLoadResult LoadProfile( PlayerNumber pn, const RString &sProfileDir);

Expand Down

0 comments on commit c0d754e

Please sign in to comment.