Removed unused code

This commit is contained in:
Jerry (Xinyu Hou) 2016-10-13 11:18:03 +01:00
parent d92fcd2453
commit 4be9fc1800
5 changed files with 0 additions and 24 deletions

View File

@ -189,18 +189,10 @@ ArgParser::parseToolArgs(ToolArgs& args, int argc, const char* const* argv)
args.m_loginAuthenticate = true; args.m_loginAuthenticate = true;
return true; return true;
} }
else if (isArg(i, argc, argv, NULL, "--get-plugin-list", 0)) {
args.m_getPluginList = true;
return true;
}
else if (isArg(i, argc, argv, NULL, "--get-installed-dir", 0)) { else if (isArg(i, argc, argv, NULL, "--get-installed-dir", 0)) {
args.m_getInstalledDir = true; args.m_getInstalledDir = true;
return true; return true;
} }
else if (isArg(i, argc, argv, NULL, "--get-plugin-dir", 0)) {
args.m_getPluginDir = true;
return true;
}
else if (isArg(i, argc, argv, NULL, "--get-profile-dir", 0)) { else if (isArg(i, argc, argv, NULL, "--get-profile-dir", 0)) {
args.m_getProfileDir = true; args.m_getProfileDir = true;
return true; return true;

View File

@ -72,15 +72,9 @@ ToolApp::run(int argc, char** argv)
else if (m_args.m_loginAuthenticate) { else if (m_args.m_loginAuthenticate) {
loginAuth(); loginAuth();
} }
else if (m_args.m_getPluginList) {
getPluginList();
}
else if (m_args.m_getInstalledDir) { else if (m_args.m_getInstalledDir) {
std::cout << ARCH->getInstalledDirectory() << std::endl; std::cout << ARCH->getInstalledDirectory() << std::endl;
} }
else if (m_args.m_getPluginDir) {
std::cout << ARCH->getPluginDirectory() << std::endl;
}
else if (m_args.m_getProfileDir) { else if (m_args.m_getProfileDir) {
std::cout << ARCH->getProfileDirectory() << std::endl; std::cout << ARCH->getProfileDirectory() << std::endl;
} }
@ -171,11 +165,6 @@ ToolApp::loginAuth()
} }
} }
void
ToolApp::getPluginList()
{
}
void void
ToolApp::notifyActivation() ToolApp::notifyActivation()
{ {

View File

@ -29,7 +29,6 @@ public:
private: private:
void loginAuth(); void loginAuth();
void getPluginList();
void notifyActivation(); void notifyActivation();
private: private:

View File

@ -20,8 +20,6 @@
ToolArgs::ToolArgs() : ToolArgs::ToolArgs() :
m_printActiveDesktopName(false), m_printActiveDesktopName(false),
m_loginAuthenticate(false), m_loginAuthenticate(false),
m_getPluginList(false),
m_getPluginDir(false),
m_getInstalledDir(false), m_getInstalledDir(false),
m_getProfileDir(false), m_getProfileDir(false),
m_getArch(false), m_getArch(false),

View File

@ -26,8 +26,6 @@ public:
public: public:
bool m_printActiveDesktopName; bool m_printActiveDesktopName;
bool m_loginAuthenticate; bool m_loginAuthenticate;
bool m_getPluginList;
bool m_getPluginDir;
bool m_getInstalledDir; bool m_getInstalledDir;
bool m_getProfileDir; bool m_getProfileDir;
bool m_getArch; bool m_getArch;