This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Removed unused code

  • Loading branch information...
Jerry (Xinyu Hou)
Jerry (Xinyu Hou) committed Oct 13, 2016
1 parent d92fcd2 commit 4be9fc1800d4e6e4c379feecfe536ea6e3dbc8b5
@@ -189,18 +189,10 @@ ArgParser::parseToolArgs(ToolArgs& args, int argc, const char* const* argv)
args.m_loginAuthenticate = 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)) {
args.m_getInstalledDir = 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)) {
args.m_getProfileDir = true;
return true;
@@ -72,15 +72,9 @@ ToolApp::run(int argc, char** argv)
else if (m_args.m_loginAuthenticate) {
loginAuth();
}
- else if (m_args.m_getPluginList) {
- getPluginList();
- }
else if (m_args.m_getInstalledDir) {
std::cout << ARCH->getInstalledDirectory() << std::endl;
}
- else if (m_args.m_getPluginDir) {
- std::cout << ARCH->getPluginDirectory() << std::endl;
- }
else if (m_args.m_getProfileDir) {
std::cout << ARCH->getProfileDirectory() << std::endl;
}
@@ -171,11 +165,6 @@ ToolApp::loginAuth()
}
}
-void
-ToolApp::getPluginList()
-{
-}
-
void
ToolApp::notifyActivation()
{
@@ -29,7 +29,6 @@ class ToolApp : public MinimalApp
private:
void loginAuth();
- void getPluginList();
void notifyActivation();
private:
@@ -20,8 +20,6 @@
ToolArgs::ToolArgs() :
m_printActiveDesktopName(false),
m_loginAuthenticate(false),
- m_getPluginList(false),
- m_getPluginDir(false),
m_getInstalledDir(false),
m_getProfileDir(false),
m_getArch(false),
@@ -26,8 +26,6 @@ class ToolArgs {
public:
bool m_printActiveDesktopName;
bool m_loginAuthenticate;
- bool m_getPluginList;
- bool m_getPluginDir;
bool m_getInstalledDir;
bool m_getProfileDir;
bool m_getArch;

0 comments on commit 4be9fc1

Please sign in to comment.