fix: removed some useless stuff
This commit is contained in:
parent
f0ac23ac29
commit
e9f7d5acda
1 changed files with 4 additions and 16 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -26,24 +26,15 @@ const string invalidconfig = R"#(Not a valid config: )#";
|
|||
|
||||
|
||||
struct Action {
|
||||
string rnames;
|
||||
string rdescription;
|
||||
string rcommand;
|
||||
string names;
|
||||
string description;
|
||||
string command;
|
||||
|
||||
Action(
|
||||
const string& rnms = "",
|
||||
const string& rdesc = "",
|
||||
const string& rcmd = "",
|
||||
const string& nms = "",
|
||||
const string& desc = "",
|
||||
const string& cmd = "")
|
||||
:
|
||||
rnames(rnms),
|
||||
rdescription(rdesc),
|
||||
rcommand(rcmd),
|
||||
names(nms),
|
||||
description(desc),
|
||||
command(cmd) {}
|
||||
|
@ -51,9 +42,6 @@ struct Action {
|
|||
|
||||
void from_toml(const table& t, Action& a) {
|
||||
try {
|
||||
a.rnames = *t.get_as<string>("rnames");
|
||||
a.rdescription = *t.get_as<string>("rdescription");
|
||||
a.rcommand = *t.get_as<string>("rcommand");
|
||||
a.names = *t.get_as<string>("names");
|
||||
a.description = *t.get_as<string>("description");
|
||||
a.command = *t.get_as<string>("command");
|
||||
|
|
Loading…
Add table
Reference in a new issue