Qmk_firmware: Cleanup: Remove extraneous includes from non-user keymaps

Created on 8 Mar 2019  路  1Comment  路  Source: qmk/qmk_firmware

A lot of default keymaps have extraneous includes, some examples include:

#include "config_common.h"
#include "../../config.h`

To promote clean code we should remove these lines from all default keymaps and any keymap that is not owned by a user.

While changing these files we can also replace these old-style include guards with #pragma once:

#ifndef CONFIG_USER_H
#define CONFIG_USER_H
[...] /* rest of config.h here */
#endif
enhancement good first issue help wanted

Most helpful comment

I decided to go through, and do this. As well as clean up the includes in the default keymap.c, as well as the _______ and XXXXXX defines.

>All comments

I decided to go through, and do this. As well as clean up the includes in the default keymap.c, as well as the _______ and XXXXXX defines.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gesinger picture gesinger  路  3Comments

vokeio picture vokeio  路  3Comments

kb3dow picture kb3dow  路  3Comments

henrebotha picture henrebotha  路  4Comments

jmagee picture jmagee  路  3Comments