Revert "Added getInstalledDir to ToolApp. #4696"

This reverts commit 98bb9b3fb3.
This commit is contained in:
Jerry (Xinyu Hou) 2015-07-08 15:00:07 -07:00
parent 61382c6eb1
commit c74993ae21
4 changed files with 1 additions and 10 deletions

View File

@ -180,10 +180,6 @@ ArgParser::parseToolArgs(ToolArgs& args, int argc, const char* const* argv)
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;

View File

@ -74,9 +74,6 @@ ToolApp::run(int argc, char** argv)
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;
}
@ -146,4 +143,4 @@ ToolApp::getPluginList()
ss << "&password=" << password;
std::cout << ARCH->internet().get(ss.str()) << std::endl;
}
}

View File

@ -22,7 +22,6 @@ ToolArgs::ToolArgs() :
m_loginAuthenticate(false),
m_getPluginList(false),
m_getPluginDir(false),
m_getInstalledDir(false),
m_getProfileDir(false)
{
}

View File

@ -28,7 +28,6 @@ public:
bool m_loginAuthenticate;
bool m_getPluginList;
bool m_getPluginDir;
bool m_getInstalledDir;
bool m_getProfileDir;
bool m_getArch;
};