Skip to content

Commit e068bd7

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored and
Devtools-frontend LUCI CQ
committed
[cleanup] Remove unused params
Bug: 409278895 Change-Id: Ie08adb5c3b5574fc013fc6ba75675b2a23367529 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6439509 Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
1 parent f9b646c commit e068bd7

File tree

63 files changed

+176
-196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+176
-196
lines changed

front_end/core/sdk/CPUProfilerModel.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export class CPUProfilerModel extends SDKModel<EventTypes> implements ProtocolPr
5151
#nextAnonymousConsoleProfileNumber: number;
5252
#anonymousConsoleProfileIdToTitle: Map<string, string>;
5353
readonly #profilerAgent: ProtocolProxyApi.ProfilerApi;
54-
#preciseCoverageDeltaUpdateCallback:
55-
((arg0: number, arg1: string, arg2: Protocol.Profiler.ScriptCoverage[]) => Promise<void>)|null;
54+
#preciseCoverageDeltaUpdateCallback: ((arg0: number, arg2: Protocol.Profiler.ScriptCoverage[]) => Promise<void>)|null;
5655
readonly #debuggerModelInternal: DebuggerModel;
5756
readonly registeredConsoleProfileMessages: ProfileFinishedData[] = [];
5857

@@ -120,8 +119,7 @@ export class CPUProfilerModel extends SDKModel<EventTypes> implements ProtocolPr
120119

121120
startPreciseCoverage(
122121
jsCoveragePerBlock: boolean,
123-
preciseCoverageDeltaUpdateCallback:
124-
((arg0: number, arg1: string, arg2: Protocol.Profiler.ScriptCoverage[]) => Promise<void>)|
122+
preciseCoverageDeltaUpdateCallback: ((arg0: number, arg2: Protocol.Profiler.ScriptCoverage[]) => Promise<void>)|
125123
null): Promise<unknown> {
126124
const callCount = false;
127125
this.#preciseCoverageDeltaUpdateCallback = preciseCoverageDeltaUpdateCallback;
@@ -145,9 +143,9 @@ export class CPUProfilerModel extends SDKModel<EventTypes> implements ProtocolPr
145143
return this.#profilerAgent.invoke_stopPreciseCoverage();
146144
}
147145

148-
preciseCoverageDeltaUpdate({timestamp, occasion, result}: Protocol.Profiler.PreciseCoverageDeltaUpdateEvent): void {
146+
preciseCoverageDeltaUpdate({timestamp, result}: Protocol.Profiler.PreciseCoverageDeltaUpdateEvent): void {
149147
if (this.#preciseCoverageDeltaUpdateCallback) {
150-
void this.#preciseCoverageDeltaUpdateCallback(timestamp, occasion, result);
148+
void this.#preciseCoverageDeltaUpdateCallback(timestamp, result);
151149
}
152150
}
153151
}

front_end/entrypoints/node_app/NodeConnectionsPanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class NodeConnectionsView extends UI.Widget.VBox implements UI.ListWidget
145145
return element;
146146
}
147147

148-
removeItemRequested(rule: Adb.PortForwardingRule, index: number): void {
148+
removeItemRequested(_rule: Adb.PortForwardingRule, index: number): void {
149149
this.#networkDiscoveryConfig.splice(index, 1);
150150
this.#list.removeItem(index);
151151
this.#update();

front_end/models/breakpoints/BreakpointManager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export class BreakpointManager extends Common.ObjectWrapper.ObjectWrapper<EventT
472472
this.dispatchEventToListeners(Events.BreakpointAdded, breakpointLocation);
473473
}
474474

475-
uiLocationRemoved(breakpoint: Breakpoint, uiLocation: Workspace.UISourceCode.UILocation): void {
475+
uiLocationRemoved(uiLocation: Workspace.UISourceCode.UILocation): void {
476476
const breakpoints = this.#breakpointsForUISourceCode.get(uiLocation.uiSourceCode);
477477
if (!breakpoints) {
478478
return;
@@ -707,7 +707,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
707707
this.uiSourceCodes.delete(uiSourceCode);
708708
this.breakpointManager.removeHomeUISourceCode(uiSourceCode, this);
709709
if (!this.bound()) {
710-
this.breakpointManager.uiLocationRemoved(this, this.defaultUILocation(uiSourceCode));
710+
this.breakpointManager.uiLocationRemoved(this.defaultUILocation(uiSourceCode));
711711
}
712712
}
713713

@@ -716,7 +716,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
716716
for (const uiLocation of this.#uiLocations) {
717717
if (uiLocation.uiSourceCode === uiSourceCode) {
718718
this.#uiLocations.delete(uiLocation);
719-
this.breakpointManager.uiLocationRemoved(this, uiLocation);
719+
this.breakpointManager.uiLocationRemoved(uiLocation);
720720
}
721721
}
722722

@@ -754,7 +754,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
754754
uiLocationRemoved(uiLocation: Workspace.UISourceCode.UILocation): void {
755755
if (this.#uiLocations.has(uiLocation)) {
756756
this.#uiLocations.delete(uiLocation);
757-
this.breakpointManager.uiLocationRemoved(this, uiLocation);
757+
this.breakpointManager.uiLocationRemoved(uiLocation);
758758
if (!this.bound() && !this.isRemoved) {
759759
this.addAllUnboundLocations();
760760
}
@@ -878,7 +878,7 @@ export class Breakpoint implements SDK.TargetManager.SDKModelObserver<SDK.Debugg
878878

879879
private removeAllUnboundLocations(): void {
880880
for (const uiSourceCode of this.uiSourceCodes) {
881-
this.breakpointManager.uiLocationRemoved(this, this.defaultUILocation(uiSourceCode));
881+
this.breakpointManager.uiLocationRemoved(this.defaultUILocation(uiSourceCode));
882882
}
883883
}
884884

front_end/models/extensions/ExtensionAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ self.injectedExtensionAPI = function(
682682
(Panels.prototype as
683683
Pick<APIImpl.Panels, 'create'|'setOpenResourceHandler'|'openResource'|'SearchAction'|'setThemeChangeHandler'>) = {
684684
create: function(
685-
title: string, icon: string, page: string,
685+
title: string, _icon: string, page: string,
686686
callback: (panel: PublicAPI.Chrome.DevTools.ExtensionPanel) => unknown): void {
687687
const id = 'extension-panel-' + extensionServer.nextObjectId();
688688
extensionServer.sendRequest(

front_end/models/trace/TracingManager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describeWithMockConnection('TracingManager', () => {
5555
const eventsCollectedSpy = sinon.spy(client, 'traceEventsCollected');
5656

5757
await manager.start(client, 'devtools-timeline');
58-
manager.bufferUsage(0, 0);
58+
manager.bufferUsage(0);
5959

6060
manager.eventsCollected(fakeEvents);
6161
assert.isTrue(eventsCollectedSpy.calledWith(fakeEvents));
@@ -68,7 +68,7 @@ describeWithMockConnection('TracingManager', () => {
6868
const client = new FakeClient();
6969
const tracingCompleteSpy = sinon.spy(client, 'tracingComplete');
7070
await manager.start(client, 'devtools-timeline');
71-
manager.bufferUsage(0, 0);
71+
manager.bufferUsage(0);
7272
manager.eventsCollected(fakeEvents);
7373
manager.tracingComplete();
7474
assert.isTrue(tracingCompleteSpy.calledOnce);

front_end/models/trace/TracingManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class TracingManager extends SDK.SDKModel.SDKModel<void> {
2222
this.#eventsRetrieved = 0;
2323
}
2424

25-
bufferUsage(usage?: number, eventCount?: number, percentFull?: number): void {
25+
bufferUsage(usage?: number, percentFull?: number): void {
2626
if (this.#activeClient) {
2727
this.#activeClient.tracingBufferUsage(usage || percentFull || 0);
2828
}
@@ -116,8 +116,8 @@ class TracingDispatcher implements ProtocolProxyApi.TracingDispatcher {
116116
}
117117

118118
// `eventCount` will always be 0 as perfetto no longer calculates `approximate_event_count`
119-
bufferUsage({value, eventCount, percentFull}: Protocol.Tracing.BufferUsageEvent): void {
120-
this.#tracingManager.bufferUsage(value, eventCount, percentFull);
119+
bufferUsage({value, percentFull}: Protocol.Tracing.BufferUsageEvent): void {
120+
this.#tracingManager.bufferUsage(value, percentFull);
121121
}
122122

123123
dataCollected({value}: Protocol.Tracing.DataCollectedEvent): void {

front_end/models/trace/handlers/RendererHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function assignMeta(
172172
threadsInProcess: Map<Types.Events.ProcessID, Map<Types.Events.ThreadID, Types.Events.ThreadName>>): void {
173173
assignOrigin(processes, rendererProcessesByFrame);
174174
assignIsMainFrame(processes, mainFrameId, rendererProcessesByFrame);
175-
assignThreadName(processes, rendererProcessesByFrame, threadsInProcess);
175+
assignThreadName(processes, threadsInProcess);
176176
}
177177

178178
/**
@@ -233,7 +233,7 @@ export function assignIsMainFrame(
233233
* @see assignMeta
234234
*/
235235
export function assignThreadName(
236-
processes: Map<Types.Events.ProcessID, RendererProcess>, rendererProcessesByFrame: FrameProcessData,
236+
processes: Map<Types.Events.ProcessID, RendererProcess>,
237237
threadsInProcess: Map<Types.Events.ProcessID, Map<Types.Events.ThreadID, Types.Events.ThreadName>>): void {
238238
for (const [pid, process] of processes) {
239239
for (const [tid, threadInfo] of threadsInProcess.get(pid) ?? []) {

front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export class DOMBreakpointsSidebarPane extends UI.Widget.VBox implements
273273
}
274274

275275
selectedItemChanged(
276-
from: SDK.DOMDebuggerModel.DOMBreakpoint|null, to: SDK.DOMDebuggerModel.DOMBreakpoint|null,
276+
_from: SDK.DOMDebuggerModel.DOMBreakpoint|null, _to: SDK.DOMDebuggerModel.DOMBreakpoint|null,
277277
fromElement: HTMLElement|null, toElement: HTMLElement|null): void {
278278
if (fromElement) {
279279
fromElement.tabIndex = -1;
@@ -406,7 +406,7 @@ const BreakpointTypeLabels = new Map([
406406
]);
407407

408408
export class ContextMenuProvider implements UI.ContextMenu.Provider<SDK.DOMModel.DOMNode> {
409-
appendApplicableItems(event: Event, contextMenu: UI.ContextMenu.ContextMenu, node: SDK.DOMModel.DOMNode): void {
409+
appendApplicableItems(_event: Event, contextMenu: UI.ContextMenu.ContextMenu, node: SDK.DOMModel.DOMNode): void {
410410
if (node.pseudoType()) {
411411
return;
412412
}

front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class XHRBreakpointsSidebarPane extends UI.Widget.VBox implements UI.Cont
241241
return listItemElement;
242242
}
243243

244-
selectedItemChanged(from: string|null, to: string|null, fromElement: HTMLElement|null, toElement: HTMLElement|null):
244+
selectedItemChanged(_from: string|null, _to: string|null, fromElement: HTMLElement|null, toElement: HTMLElement|null):
245245
void {
246246
if (fromElement) {
247247
const breakpointEntryElement = containerToBreakpointEntry.get(fromElement);

front_end/panels/console/ConsoleContextSelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class ConsoleContextSelector implements SDK.TargetManager.SDKModelObserve
7474
}
7575

7676
highlightedItemChanged(
77-
from: SDK.RuntimeModel.ExecutionContext|null, to: SDK.RuntimeModel.ExecutionContext|null,
77+
_from: SDK.RuntimeModel.ExecutionContext|null, to: SDK.RuntimeModel.ExecutionContext|null,
7878
fromElement: Element|null, toElement: Element|null): void {
7979
SDK.OverlayModel.OverlayModel.hideDOMNodeHighlight();
8080
if (to && to.frameId) {

front_end/panels/coverage/CoverageModel.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ export class CoverageModel extends SDK.SDKModel.SDKModel<EventTypes> {
155155
}
156156
}
157157

158-
async preciseCoverageDeltaUpdate(
159-
timestamp: number, occasion: string, coverageData: Protocol.Profiler.ScriptCoverage[]): Promise<void> {
158+
async preciseCoverageDeltaUpdate(timestamp: number, coverageData: Protocol.Profiler.ScriptCoverage[]): Promise<void> {
160159
this.coverageUpdateTimes.add(timestamp);
161160
const result = await this.backlogOrProcessJSCoverage(coverageData, timestamp);
162161
if (result.length) {

front_end/panels/elements/CSSRuleValidator.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class FlexItemValidator extends CSSRuleValidator {
200200
return Host.UserMetrics.CSSHintType.FLEX_ITEM;
201201
}
202202

203-
getHint(propertyName: string, computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>): Hint
203+
getHint(propertyName: string, _computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>): Hint
204204
|undefined {
205205
if (!parentComputedStyles) {
206206
return;
@@ -311,7 +311,7 @@ export class GridItemValidator extends CSSRuleValidator {
311311
return Host.UserMetrics.CSSHintType.GRID_ITEM;
312312
}
313313

314-
getHint(propertyName: string, computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>): Hint
314+
getHint(propertyName: string, _computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>): Hint
315315
|undefined {
316316
if (!parentComputedStyles) {
317317
return;
@@ -347,7 +347,7 @@ export class FlexOrGridItemValidator extends CSSRuleValidator {
347347
return Host.UserMetrics.CSSHintType.FLEX_OR_GRID_ITEM;
348348
}
349349

350-
getHint(propertyName: string, computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>): Hint
350+
getHint(propertyName: string, _computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>): Hint
351351
|undefined {
352352
if (!parentComputedStyles) {
353353
return;
@@ -610,7 +610,7 @@ export class SizingValidator extends CSSRuleValidator {
610610
}
611611

612612
getHint(
613-
propertyName: string, computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>,
613+
propertyName: string, computedStyles?: Map<string, string>, _parentComputedStyles?: Map<string, string>,
614614
nodeName?: string): Hint|undefined {
615615
if (!computedStyles || !nodeName) {
616616
return;
@@ -654,8 +654,8 @@ export class FontVariationSettingsValidator extends CSSRuleValidator {
654654
}
655655

656656
getHint(
657-
propertyName: string, computedStyles?: Map<string, string>, parentComputedStyles?: Map<string, string>,
658-
nodeName?: string, fontFaces?: SDK.CSSFontFace.CSSFontFace[]): Hint|undefined {
657+
_propertyName: string, computedStyles?: Map<string, string>, _parentComputedStyles?: Map<string, string>,
658+
_nodeName?: string, fontFaces?: SDK.CSSFontFace.CSSFontFace[]): Hint|undefined {
659659
if (!computedStyles) {
660660
return;
661661
}

front_end/panels/elements/CSSValueTraceView.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,12 @@ export class CSSValueTraceView extends UI.Widget.VBox {
152152
if (!matchedResult) {
153153
return undefined;
154154
}
155-
return this.#showTrace(property, matchedResult, matchedStyles, computedStyles, renderers);
155+
return this.#showTrace(property, matchedResult, renderers);
156156
}
157157

158158
#showTrace(
159159
property: SDK.CSSProperty.CSSProperty,
160160
matchedResult: SDK.CSSPropertyParser.BottomUpTreeMatching,
161-
matchedStyles: SDK.CSSMatchedStyles.CSSMatchedStyles,
162-
computedStyles: Map<string, string>|null,
163161
renderers: Array<MatchRenderer<SDK.CSSPropertyParser.Match>>,
164162
): void {
165163
this.#highlighting = new Highlighting();

front_end/panels/elements/ElementsTreeElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
13911391
});
13921392
}
13931393

1394-
private textNodeEditingCommitted(textNode: SDK.DOMModel.DOMNode, element: Element, newText: string): void {
1394+
private textNodeEditingCommitted(textNode: SDK.DOMModel.DOMNode, _element: Element, newText: string): void {
13951395
this.editing = null;
13961396

13971397
function callback(this: ElementsTreeElement): void {

front_end/panels/elements/ImagePreviewPopover.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ImagePreviewPopover {
1818
private readonly getDOMNode: (arg0: Element) => SDK.DOMModel.DOMNode | null;
1919
private readonly popover: UI.PopoverHelper.PopoverHelper;
2020
constructor(
21-
container: Element, getLinkElement: (arg0: Event) => Element | null,
21+
container: HTMLElement, getLinkElement: (arg0: Event) => Element | null,
2222
getDOMNode: (arg0: Element) => SDK.DOMModel.DOMNode | null) {
2323
this.getLinkElement = getLinkElement;
2424
this.getDOMNode = getDOMNode;
@@ -45,7 +45,7 @@ export class ImagePreviewPopover {
4545
return false;
4646
}
4747
const precomputedFeatures = await Components.ImagePreview.ImagePreview.loadDimensionsForNode(node);
48-
const preview = await Components.ImagePreview.ImagePreview.build(node.domModel().target(), href, true, {
48+
const preview = await Components.ImagePreview.ImagePreview.build(href, true, {
4949
imageAltText: undefined,
5050
precomputedFeatures,
5151
align: Components.ImagePreview.Align.CENTER,

front_end/panels/elements/StylePropertiesSection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,10 +1519,10 @@ export class StylePropertiesSection {
15191519
}
15201520

15211521
editingSelectorCommitted(
1522-
element: Element,
1522+
_element: Element,
15231523
newContent: string,
15241524
oldContent: string|null,
1525-
context: Context|undefined,
1525+
_context: Context|undefined,
15261526
moveDirection: string,
15271527
): void {
15281528
this.editingSelectorEnded();

front_end/panels/elements/StylePropertyTreeElement.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
22622262
if (this.treeOutline) {
22632263
const propertyIndex = this.treeOutline.rootElement().indexOfChild(this);
22642264
// order matters here: this.editingCancelled may invalidate this.treeOutline.
2265-
this.editingCancelled(null, context);
2265+
this.editingCancelled(context);
22662266
await this.toggleDisabled(!this.property.disabled);
22672267
event.consume();
22682268
this.parentPaneInternal.continueEditingElement(sectionIndex, propertyIndex);
@@ -2546,7 +2546,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
25462546
if (result) {
25472547
switch (result) {
25482548
case 'cancel':
2549-
this.editingCancelled(null, context);
2549+
this.editingCancelled(context);
25502550
break;
25512551
case 'forward':
25522552
case 'backward':
@@ -2674,7 +2674,7 @@ export class StylePropertyTreeElement extends UI.TreeOutline.TreeElement {
26742674
this.parentPaneInternal.setEditingStyle(false);
26752675
}
26762676

2677-
editingCancelled(element: Element|null, context: Context): void {
2677+
editingCancelled(context: Context): void {
26782678
this.removePrompt();
26792679

26802680
if (this.hasBeenEditedIncrementally) {

front_end/panels/elements/components/CSSPropertyIconResolver.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ function baselineIcon(): IconInfo {
250250
};
251251
}
252252

253-
function flexAlignSelfIcon(iconName: string): (styles: ComputedStyles, parentStyles: ComputedStyles) => IconInfo {
254-
function getIcon(computedStyles: ComputedStyles, parentComputedStyles: ComputedStyles): IconInfo {
253+
function flexAlignSelfIcon(iconName: string): (parentStyles: ComputedStyles) => IconInfo {
254+
function getIcon(parentComputedStyles: ComputedStyles): IconInfo {
255255
return flexAlignItemsIcon(iconName)(parentComputedStyles);
256256
}
257257
return getIcon;
258258
}
259259

260-
function gridAlignSelfIcon(iconName: string): (styles: ComputedStyles, parentStyles: ComputedStyles) => IconInfo {
261-
function getIcon(computedStyles: ComputedStyles, parentComputedStyles: ComputedStyles): IconInfo {
260+
function gridAlignSelfIcon(iconName: string): (parentStyles: ComputedStyles) => IconInfo {
261+
function getIcon(parentComputedStyles: ComputedStyles): IconInfo {
262262
return gridAlignItemsIcon(iconName)(parentComputedStyles);
263263
}
264264
return getIcon;
@@ -403,7 +403,7 @@ export function findIcon(
403403
}
404404
}
405405
if (isFlexContainer(parentComputedStyles)) {
406-
const icon = findFlexItemIcon(text, computedStyles, parentComputedStyles);
406+
const icon = findFlexItemIcon(text, parentComputedStyles);
407407
if (icon) {
408408
return icon;
409409
}
@@ -415,7 +415,7 @@ export function findIcon(
415415
}
416416
}
417417
if (isGridContainer(parentComputedStyles)) {
418-
const icon = findGridItemIcon(text, computedStyles, parentComputedStyles);
418+
const icon = findGridItemIcon(text, parentComputedStyles);
419419
if (icon) {
420420
return icon;
421421
}
@@ -431,11 +431,10 @@ export function findFlexContainerIcon(text: string, computedStyles: ComputedStyl
431431
return null;
432432
}
433433

434-
export function findFlexItemIcon(
435-
text: string, computedStyles: ComputedStyles|null, parentComputedStyles?: ComputedStyles|null): IconInfo|null {
434+
export function findFlexItemIcon(text: string, parentComputedStyles?: ComputedStyles|null): IconInfo|null {
436435
const resolver = flexItemIcons.get(text);
437436
if (resolver) {
438-
return resolver(computedStyles || new Map(), parentComputedStyles || new Map());
437+
return resolver(parentComputedStyles || new Map());
439438
}
440439
return null;
441440
}
@@ -448,11 +447,10 @@ export function findGridContainerIcon(text: string, computedStyles: ComputedStyl
448447
return null;
449448
}
450449

451-
export function findGridItemIcon(
452-
text: string, computedStyles: ComputedStyles|null, parentComputedStyles?: ComputedStyles|null): IconInfo|null {
450+
export function findGridItemIcon(text: string, parentComputedStyles?: ComputedStyles|null): IconInfo|null {
453451
const resolver = gridItemIcons.get(text);
454452
if (resolver) {
455-
return resolver(computedStyles || new Map(), parentComputedStyles || new Map());
453+
return resolver(parentComputedStyles || new Map());
456454
}
457455
return null;
458456
}

0 commit comments

Comments
 (0)