- plugins: disable unused cfg-params

This commit is contained in:
svenhoefer
2014-11-06 12:33:13 +01:00
parent b93cb83c7c
commit c8522bae71
2 changed files with 6 additions and 1 deletions

View File

@@ -200,12 +200,14 @@ bool CPlugins::parseCfg(plugin *plugin_data)
plugin_data->index = sindex++; plugin_data->index = sindex++;
plugin_data->key = 0; //CRCInput::RC_nokey plugin_data->key = 0; //CRCInput::RC_nokey
#if 0
plugin_data->fb = false; plugin_data->fb = false;
plugin_data->rc = false; plugin_data->rc = false;
plugin_data->lcd = false; plugin_data->lcd = false;
plugin_data->vtxtpid = false; plugin_data->vtxtpid = false;
plugin_data->showpig = false; plugin_data->showpig = false;
plugin_data->needoffset = false; plugin_data->needoffset = false;
#endif
plugin_data->shellwindow = false; plugin_data->shellwindow = false;
plugin_data->hide = false; plugin_data->hide = false;
plugin_data->type = CPlugins::P_TYPE_DISABLED; plugin_data->type = CPlugins::P_TYPE_DISABLED;
@@ -257,6 +259,7 @@ bool CPlugins::parseCfg(plugin *plugin_data)
{ {
plugin_data->integration = getPluginIntegration(atoi(parm)); plugin_data->integration = getPluginIntegration(atoi(parm));
} }
#if 0
else if (cmd == "needfb") else if (cmd == "needfb")
{ {
plugin_data->fb = atoi(parm); plugin_data->fb = atoi(parm);
@@ -281,6 +284,7 @@ bool CPlugins::parseCfg(plugin *plugin_data)
{ {
plugin_data->needoffset = atoi(parm); plugin_data->needoffset = atoi(parm);
} }
#endif
else if (cmd == "shellwindow") else if (cmd == "shellwindow")
{ {
plugin_data->shellwindow = atoi(parm); plugin_data->shellwindow = atoi(parm);

View File

@@ -88,7 +88,7 @@ class CPlugins
std::string depend; std::string depend;
CPlugins::p_type_t type; CPlugins::p_type_t type;
CPlugins::i_type_t integration; CPlugins::i_type_t integration;
#if 0
bool fb; bool fb;
bool rc; bool rc;
bool lcd; bool lcd;
@@ -96,6 +96,7 @@ class CPlugins
int posx, posy, sizex, sizey; int posx, posy, sizex, sizey;
bool showpig; bool showpig;
bool needoffset; bool needoffset;
#endif
bool shellwindow; bool shellwindow;
bool hide; bool hide;
bool operator< (const plugin& a) const bool operator< (const plugin& a) const