Skip to content

Commit 7aa436d

Browse files
committed
Remove extraneous 'extern' hints
1 parent 9d0b6c5 commit 7aa436d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+216
-218
lines changed

Marlin/src/feature/fanmux.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
* feature/fanmux.h - Cooling Fan Multiplexer support functions
2626
*/
2727

28-
extern void fanmux_switch(const uint8_t e);
29-
extern void fanmux_init();
28+
void fanmux_switch(const uint8_t e);
29+
void fanmux_init();

Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extern DGUSDisplay dgusdisplay;
117117
constexpr float cpow(const float x, const int y) { return y == 0 ? 1.0 : x * cpow(x, y - 1); }
118118

119119
/// Find the flash address of a DGUS_VP_Variable for the VP.
120-
extern const DGUS_VP_Variable* DGUSLCD_FindVPVar(const uint16_t vp);
120+
const DGUS_VP_Variable* DGUSLCD_FindVPVar(const uint16_t vp);
121121

122122
/// Helper to populate a DGUS_VP_Variable for a given VP. Return false if not found.
123-
extern bool populate_VPVar(const uint16_t VP, DGUS_VP_Variable * const ramcopy);
123+
bool populate_VPVar(const uint16_t VP, DGUS_VP_Variable * const ramcopy);

Marlin/src/lcd/extui/lib/mks_ui/draw_about.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
extern "C" { /* C-declarations for C++ */
2626
#endif
2727

28-
extern void lv_draw_about();
29-
extern void lv_clear_about();
28+
void lv_draw_about();
29+
void lv_clear_about();
3030

3131
#ifdef __cplusplus
3232
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_acceleration_settings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
extern "C" { /* C-declarations for C++ */
2626
#endif
2727

28-
extern void lv_draw_acceleration_settings();
29-
extern void lv_clear_acceleration_settings();
28+
void lv_draw_acceleration_settings();
29+
void lv_clear_acceleration_settings();
3030

3131
#ifdef __cplusplus
3232
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_advance_settings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
extern "C" { /* C-declarations for C++ */
2626
#endif
2727

28-
extern void lv_draw_advance_settings();
29-
extern void lv_clear_advance_settings();
28+
void lv_draw_advance_settings();
29+
void lv_clear_advance_settings();
3030

3131
#ifdef __cplusplus
3232
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_auto_level_offset_settings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
extern "C" { /* C-declarations for C++ */
2626
#endif
2727

28-
extern void lv_draw_auto_level_offset_settings();
29-
extern void lv_clear_auto_level_offset_settings();
28+
void lv_draw_auto_level_offset_settings();
29+
void lv_clear_auto_level_offset_settings();
3030

3131
#ifdef __cplusplus
3232
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_baby_stepping.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
extern "C" { /* C-declarations for C++ */
2626
#endif
2727

28-
extern void lv_draw_baby_stepping();
29-
extern void lv_clear_baby_stepping();
30-
extern void disp_baby_step_dist();
31-
extern void disp_z_offset_value();
28+
void lv_draw_baby_stepping();
29+
void lv_clear_baby_stepping();
30+
void disp_baby_step_dist();
31+
void disp_z_offset_value();
3232

3333
#ifdef __cplusplus
3434
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_change_speed.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
#define MIN_EXT_SPEED_PERCENT 10
2929
#define MAX_EXT_SPEED_PERCENT 999
3030

31-
extern void lv_draw_change_speed();
32-
extern void lv_clear_change_speed();
33-
extern void disp_speed_step();
34-
extern void disp_print_speed();
35-
extern void disp_speed_type();
31+
void lv_draw_change_speed();
32+
void lv_clear_change_speed();
33+
void disp_speed_step();
34+
void disp_print_speed();
35+
void disp_speed_type();
3636

3737
#ifdef __cplusplus
3838
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_cloud_bind.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
extern "C" { /* C-declarations for C++ */
2626
#endif
2727

28-
extern void lv_draw_cloud_bind();
29-
extern void lv_clear_cloud_bind();
30-
extern void disp_bind_state();
31-
extern void refresh_bind_ui();
32-
extern void display_qrcode(uint8_t *qrcode_data);
33-
extern void cloud_unbind();
28+
void lv_draw_cloud_bind();
29+
void lv_clear_cloud_bind();
30+
void disp_bind_state();
31+
void refresh_bind_ui();
32+
void display_qrcode(uint8_t *qrcode_data);
33+
void cloud_unbind();
3434

3535
#ifdef __cplusplus
3636
} /* C-declarations for C++ */

Marlin/src/lcd/extui/lib/mks_ui/draw_dialog.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ enum {
7474
DIALOG_TRANSFER_NO_DEVICE
7575
};
7676

77-
extern void lv_draw_dialog(uint8_t type);
78-
extern void lv_clear_dialog();
79-
extern void filament_sprayer_temp();
80-
extern void filament_dialog_handle();
81-
extern void lv_filament_setbar();
77+
void lv_draw_dialog(uint8_t type);
78+
void lv_clear_dialog();
79+
void filament_sprayer_temp();
80+
void filament_dialog_handle();
81+
void lv_filament_setbar();
8282

8383
#ifdef __cplusplus
8484
} /* C-declarations for C++ */

0 commit comments

Comments
 (0)