@@ -180,15 +180,6 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
180180
181181 const apiConfiguration = useMemo ( ( ) => cachedState . apiConfiguration ?? { } , [ cachedState . apiConfiguration ] )
182182
183- const getCurrentProfileId = useCallback ( ( ) => {
184- if ( ! currentApiConfigName || ! listApiConfigMeta ) {
185- return currentApiConfigName
186- }
187-
188- const profile = listApiConfigMeta . find ( ( p ) => p . name === currentApiConfigName )
189- return profile ? profile . id : currentApiConfigName
190- } , [ currentApiConfigName , listApiConfigMeta ] )
191-
192183 useEffect ( ( ) => {
193184 // Update only when currentApiConfigName is changed.
194185 // Expected to be triggered by loadApiConfiguration/upsertApiConfiguration.
@@ -245,16 +236,6 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
245236 } )
246237 } , [ ] )
247238
248- const setProfileThreshold = useCallback (
249- ( profileId : string , threshold : number ) => {
250- setCachedStateField ( "profileThresholds" , {
251- ...profileThresholds ,
252- [ profileId ] : threshold ,
253- } )
254- } ,
255- [ profileThresholds , setCachedStateField ] ,
256- )
257-
258239 const setTelemetrySetting = useCallback ( ( setting : TelemetrySetting ) => {
259240 setCachedState ( ( prevState ) => {
260241 if ( prevState . telemetrySetting === setting ) {
@@ -601,10 +582,6 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
601582 setApiConfigurationField = { setApiConfigurationField }
602583 errorMessage = { errorMessage }
603584 setErrorMessage = { setErrorMessage }
604- currentProfileId = { getCurrentProfileId ( ) }
605- profileThresholds = { profileThresholds || { } }
606- autoCondenseContextPercent = { autoCondenseContextPercent || 75 }
607- setProfileThreshold = { setProfileThreshold }
608585 />
609586 </ Section >
610587 </ div >
0 commit comments