Skip to content

Commit

Permalink
Remove unused config option 'enable-parameters'
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoulSchaffranek committed Jan 10, 2025
1 parent f7186d0 commit fa9f0b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/CodelensProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export class CodelensProvider implements vscode.CodeLensProvider {
}

private getFunctions(ast: any): [ContractDefinition, FunctionDefinition][] {
const enableParameters = getConfigValue('enable-parameters', false);
const results: [ContractDefinition, FunctionDefinition][] = [];
parser.visit(ast, {
ContractDefinition: contract => {
Expand All @@ -73,12 +72,12 @@ export class CodelensProvider implements vscode.CodeLensProvider {
}
},
});
if (enableParameters || !hasConstructorArgs) {
if (!hasConstructorArgs) {
parser.visit(contract, {
FunctionDefinition: fn => {
if (
this.isExecutable(fn) &&
(enableParameters || fn.parameters.length === 0)
fn.parameters.length === 0
) {
results.push([contract, fn]);
}
Expand Down

0 comments on commit fa9f0b6

Please sign in to comment.