Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Jun 29, 2023
1 parent 7814da7 commit a5301b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions include/mode-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ typedef enum {
MODE_TYPE_SWITCHER = 0x1,
/** A mode that can be used to completer */
MODE_TYPE_COMPLETER = 0x2,
/** DMenu mode. */
MODE_TYPE_DMENU = 0x4,
} ModeType;

/**
Expand Down
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project('rofi', 'c',
license: [ 'MIT' ],
default_options: [
'c_std=c99',
'warning_level=3'
],
)

Expand All @@ -21,8 +22,7 @@ flags = [
'-Winline',
'-Wunreachable-code',
'-Werror=missing-prototypes',
'-Wno-inline', # A bit too noisy with Bison…
'-Wextra'
'-Wno-inline' # A bit too noisy with Bison…
]
foreach f : flags
if c_compiler.has_argument(f)
Expand Down
3 changes: 2 additions & 1 deletion source/modes/dmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ Mode dmenu_mode = {.name = "dmenu",
._get_message = dmenu_get_message,
.private_data = NULL,
.free = NULL,
.display_name = "dmenu"};
.display_name = "dmenu",
.type = MODE_TYPE_DMENU};

static int dmenu_mode_init(Mode *sw) {
if (mode_get_private_data(sw) != NULL) {
Expand Down
6 changes: 0 additions & 6 deletions source/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,6 @@ void rofi_capture_screenshot(void) {
g_date_time_unref(now);
}

/**
* Code used for benchmarking drawing the gui, this will keep updating the UI as
* fast as possible.
*/
gboolean do_bench = TRUE;

/**
* Internal structure that hold benchmarking information.
*/
Expand Down

0 comments on commit a5301b3

Please sign in to comment.