Skip to content

Commit

Permalink
[tidy] Remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed Dec 4, 2024
1 parent 7df920f commit 9ad979f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static char *olcxStringCopy(char *string) {
return copy;
}

SymbolsMenu *olCreateNewMenuItem(ReferenceItem *symbol, int vApplClass, int vFunCl, Position *defpos,
SymbolsMenu *olCreateNewMenuItem(ReferenceItem *symbol, int vApplClass, Position *defpos,
int defusage, int selected, int visible, unsigned ooBits, int olusage,
int vlevel) {
SymbolsMenu *symbolsMenu;
Expand Down Expand Up @@ -141,7 +141,7 @@ SymbolsMenu *olAddBrowsedSymbolToMenu(SymbolsMenu **menuP, ReferenceItem *symbol
new = *place;
if (*place==NULL || olSymbolMenuIsLess(&dummyMenu, *place)) {
assert(symbol);
new = olCreateNewMenuItem(symbol, symbol->vApplClass, symbol->vApplClass, defpos, defusage,
new = olCreateNewMenuItem(symbol, symbol->vApplClass, defpos, defusage,
selected, visible, ooBits,
olusage, vlevel);
LIST_CONS(new, *place);
Expand Down
2 changes: 1 addition & 1 deletion src/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern SymbolsMenu *freeSymbolsMenu(SymbolsMenu *menu);
extern void freeSymbolsMenuList(SymbolsMenu *menu);
extern void olcxAddReferenceToSymbolsMenu(SymbolsMenu *menu, Reference *reference);
extern void olcxPrintSelectionMenu(SymbolsMenu *menu);
extern SymbolsMenu *olCreateNewMenuItem(ReferenceItem *sym, int vApplClass, int vFunCl,
extern SymbolsMenu *olCreateNewMenuItem(ReferenceItem *sym, int vApplClass,
Position *defpos, int defusage, int selected, int visible,
unsigned ooBits, int olusage, int vlevel);
extern SymbolsMenu *olAddBrowsedSymbolToMenu(SymbolsMenu **menuP, ReferenceItem *reference,
Expand Down
4 changes: 2 additions & 2 deletions src/menu.mock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ void olcxPrintSelectionMenu(SymbolsMenu *menu) {
mock(menu);
}

SymbolsMenu *olCreateNewMenuItem(ReferenceItem *sym, int vApplClass, int vFunCl, Position *defpos,
SymbolsMenu *olCreateNewMenuItem(ReferenceItem *sym, int vApplClass, Position *defpos,
int defusage, int selected, int visible, unsigned ooBits, int olusage,
int vlevel) {
return (SymbolsMenu *) mock(sym, vApplClass, vFunCl, defpos, defusage, selected, visible, ooBits, olusage, vlevel);
return (SymbolsMenu *) mock(sym, vApplClass, defpos, defusage, selected, visible, ooBits, olusage, vlevel);
}

SymbolsMenu *olAddBrowsedSymbolToMenu(SymbolsMenu **menuP, ReferenceItem *reference,
Expand Down

0 comments on commit 9ad979f

Please sign in to comment.