1717 * under the License.
1818 */
1919
20- import { set } from '@elastic/safer-lodash-set' ;
21- import { difference , get } from 'lodash' ;
22- // @ts -expect-error
23- import { getTransform } from '../../../../legacy/deprecation/index' ;
20+ import { difference } from 'lodash' ;
2421import { unset } from '../../../../legacy/utils' ;
2522import { getFlattenedObject } from '../../../utils' ;
2623import { hasConfigPathIntersection } from '../../config' ;
@@ -41,21 +38,6 @@ export async function getUnusedConfigKeys({
4138 settings : LegacyVars ;
4239 legacyConfig : LegacyConfig ;
4340} ) {
44- // transform deprecated plugin settings
45- for ( let i = 0 ; i < pluginSpecs . length ; i ++ ) {
46- const spec = pluginSpecs [ i ] ;
47- const transform = await getTransform ( spec ) ;
48- const prefix = spec . getConfigPrefix ( ) ;
49-
50- // nested plugin prefixes (a.b) translate to nested objects
51- const pluginSettings = get ( settings , prefix ) ;
52- if ( pluginSettings ) {
53- // flattened settings are expected to be converted to nested objects
54- // a.b = true => { a: { b: true }}
55- set ( settings , prefix , transform ( pluginSettings ) ) ;
56- }
57- }
58-
5941 // remove config values from disabled plugins
6042 for ( const spec of disabledPluginSpecs ) {
6143 unset ( settings , spec . getConfigPrefix ( ) ) ;
0 commit comments