Remove unnecessary C code
This commit is contained in:
parent
6698c8a72f
commit
f8a678ecf8
2 changed files with 2 additions and 14 deletions
|
@ -21,11 +21,6 @@ unsafe extern "C" fn settings_set_bar_on_top_by_default(value: bool) {
|
|||
SETTINGS.unwrap().bar_on_top_by_default_set(value);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn settings_get_border_for_single_window() -> c_uchar {
|
||||
SETTINGS.unwrap().border_for_single_window().into()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn settings_set_border_for_single_window(value: c_uchar) {
|
||||
SETTINGS.unwrap().border_for_single_window_set(value.into());
|
||||
|
@ -81,11 +76,6 @@ unsafe extern "C" fn settings_set_focus_on_wheel(value: bool) {
|
|||
SETTINGS.unwrap().focus_on_wheel_set(value);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn settings_get_gap_for_single_window() -> c_uchar {
|
||||
SETTINGS.unwrap().gap_for_single_window().into()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn settings_set_gap_for_single_window(value: c_uchar) {
|
||||
SETTINGS.unwrap().gap_for_single_window_set(value.into());
|
||||
|
|
|
@ -15,8 +15,7 @@ typedef unsigned char SettingsForSingleWindow;
|
|||
bool settings_get_bar_on_top_by_default();
|
||||
void settings_set_bar_on_top_by_default(bool new_bar_on_top_by_default);
|
||||
|
||||
SettingsForSingleWindow settings_get_border_for_single_window();
|
||||
void settings_set_border_for_single_window(SettingsForSingleWindow new_border_for_single_window);
|
||||
void settings_set_border_for_single_window(SettingsForSingleWindow new_border_for_single_window);
|
||||
|
||||
int settings_get_border_width();
|
||||
void settings_set_border_width(int new_border_width);
|
||||
|
@ -27,8 +26,7 @@ void settings_set_default_clients_in_master(int new_default_clients_in_master);
|
|||
float settings_get_default_master_area_factor();
|
||||
void settings_set_default_master_area_factor(float new_default_master_area_factor);
|
||||
|
||||
SettingsForSingleWindow settings_get_gap_for_single_window();
|
||||
void settings_set_gap_for_single_window(SettingsForSingleWindow new_gap_for_single_window);
|
||||
void settings_set_gap_for_single_window(SettingsForSingleWindow new_gap_for_single_window);
|
||||
|
||||
bool settings_get_enable_swallowing();
|
||||
void settings_set_enable_swallowing(bool new_enable_swallowing);
|
||||
|
|
Loading…
Reference in a new issue