Remove the help/files command

The local docs it tries to open don't actually exists and if they're
ever added, the help contents command opens them anyway so I'm not sure
what the intended purpose of the command ever was.
This commit is contained in:
Thomas Goyne 2013-10-25 14:07:52 -07:00
parent 3a852f102d
commit 5f63a3fcce
6 changed files with 0 additions and 32 deletions

View File

@ -94,10 +94,5 @@ std::string GetBundleExecutablePath();
std::string GetBundleAuxillaryExecutablePath(std::string const& executableName);
std::string GetApplicationSupportDirectory();
/// @brief Open a URI using the Launcher.
/// @param location URI of file
/// @note If this is a FILE or DIRECTORY the path must be ABSOLUTE no 'file://'
void OpenLocation(std::string const& location);
} // namespace util
} // namespace agi

View File

@ -101,12 +101,5 @@ std::string GetApplicationSupportDirectory() {
}
}
void OpenLocation(std::string const& location) {
@autoreleasepool {
NSURL *url = [NSURL fileURLWithPath:[NSString stringWithUTF8String:location.c_str()]];
LSOpenCFURLRef((CFURLRef)url, NULL);
}
}
}
}

View File

@ -38,7 +38,6 @@
#include "../options.h"
#include <libaegisub/util.h>
#include <libaegisub/util_osx.h>
#include <wx/msgdlg.h>
@ -76,19 +75,6 @@ struct help_contents : public Command {
}
};
#ifdef __WXMAC__
struct help_files : public Command {
CMD_NAME("help/files")
STR_MENU("All Fil&es")
STR_DISP("All Files")
STR_HELP("Resource files")
void operator()(agi::Context *) {
agi::util::OpenLocation((agi::util::GetBundleSharedSupportDirectory() + "/doc").c_str());
}
};
#endif
struct help_forums : public Command {
CMD_NAME("help/forums")
STR_MENU("&Forums")
@ -138,9 +124,6 @@ namespace cmd {
void init_help() {
reg(agi::util::make_unique<help_bugs>());
reg(agi::util::make_unique<help_contents>());
#ifdef __WXMAC__
reg(agi::util::make_unique<help_files>());
#endif
reg(agi::util::make_unique<help_forums>());
reg(agi::util::make_unique<help_irc>());
reg(agi::util::make_unique<help_video>());

View File

@ -112,7 +112,6 @@ INSERT_ICON("grid/line/next/create", button_audio_commit)
INSERT_ICON("grid/tag/cycle_hiding", toggle_tag_hiding)
INSERT_ICON("help/bugs", bugtracker_button)
INSERT_ICON("help/contents", contents_button)
INSERT_ICON("help/files", contents_button)
INSERT_ICON("help/forums", forums_button)
INSERT_ICON("help/irc", irc_button)
INSERT_ICON("help/video", visual_help)

View File

@ -202,7 +202,6 @@
"main/help" : [
{ "command" : "help/contents" },
{},
{ "command" : "help/files" },
{ "command" : "help/website" },
{ "command" : "help/forums" },
{ "command" : "help/bugs" },

View File

@ -201,7 +201,6 @@
"main/help" : [
{ "command" : "help/contents" },
{},
{ "command" : "help/files" },
{ "command" : "help/website" },
{ "command" : "help/forums" },
{ "command" : "help/bugs" },