Skip to content

Commit

Permalink
Removed useless functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored and XVilka committed Jan 7, 2024
1 parent e71a365 commit df65b0a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions librz/core/tui/panels.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static const char *menus_settings_screen[] = {

static const char *menus_Help[] = {
"Toggle Help",
"License", "Version",
"Version",
"Fortune",
NULL
};
Expand Down Expand Up @@ -509,7 +509,6 @@ static int __watch_points_cb(void *user);
static int __references_cb(void *user);
static int __help_cb(void *user);
static int __fortune_cb(void *user);
static int __license_cb(void *user);
static int __version_cb(void *user);
static int __quit_cb(void *user);
static int __io_cache_on_cb(void *user);
Expand Down Expand Up @@ -3638,11 +3637,6 @@ int __help_cb(void *user) {
return 0;
}

int __license_cb(void *user) {
rz_cons_message("Copyright 2006-2020 - pancake - LGPL");
return 0;
}

int __version_cb(void *user) {
char *v = rz_version_str(NULL);
rz_cons_message(v);
Expand Down Expand Up @@ -4572,9 +4566,7 @@ bool __init_panels_menu(RzCore *core) {
parent = "Help";
i = 0;
while (menus_Help[i]) {
if (!strcmp(menus_Help[i], "License")) {
__add_menu(core, parent, menus_Help[i], __license_cb);
} else if (!strcmp(menus_Help[i], "Version")) {
if (!strcmp(menus_Help[i], "Version")) {
__add_menu(core, parent, menus_Help[i], __version_cb);
} else if (!strcmp(menus_Help[i], "Fortune")) {
__add_menu(core, parent, menus_Help[i], __fortune_cb);
Expand Down

0 comments on commit df65b0a

Please sign in to comment.