Skip to content

Commit

Permalink
remove MAX_TDP_PROFILE_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Dec 8, 2024
1 parent 87659cf commit b45cf3b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/redux-modules/settingsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
DEFAULT_POWER_CONTROLS,
DEFAULT_START_TDP,
EppOption,
MAX_TDP_PROFILE_ID,
MIN_TDP_RANGE,
PowerGovernorOption,
} from "../utils/constants";
Expand Down Expand Up @@ -342,14 +341,6 @@ export const settingsSlice = createSlice({
const { isAcPower, advanced } = state;
const { id, displayName } = action.payload;

if (id === MAX_TDP_PROFILE_ID) {
const { maxTdp } = state;
const maxTdpProfile = clone(state.tdpProfiles.default);
maxTdpProfile.tdp = maxTdp;

state.tdpProfiles[MAX_TDP_PROFILE_ID] = maxTdpProfile;
}

state.previousGameId = state.currentGameId;
if (isAcPower && advanced[AdvancedOptionsEnum.AC_POWER_PROFILES]) {
const newId = `${id}-ac-power`;
Expand Down
1 change: 0 additions & 1 deletion src/steamListeners.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
extractCurrentGameInfo,
MAX_TDP_PROFILE_ID,
// DEFAULT_START_TDP,
} from "./utils/constants";
import { store } from "./redux-modules/store";
Expand Down
1 change: 0 additions & 1 deletion src/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const CpuVendors = {
export const MIN_TDP_RANGE = 4;
export const DEFAULT_POLL_RATE = 10000;
export const DEFAULT_START_TDP = 12;
export const MAX_TDP_PROFILE_ID = 'max-tdp'

export const extractCurrentGameId = getCurrentGameId;

Expand Down

0 comments on commit b45cf3b

Please sign in to comment.