summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_env_mingw.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-08-18 13:37:25 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-08-18 15:10:55 +1000
commit1d05b5d25de1dad9ca6474a4b714d940d43206c0 (patch)
treeef3b251839db199fcff995ab222592d169c51c56 /gtk2_ardour/bundle_env_mingw.cc
parentea32eecf3d2fa22c87350a3b198f8c13707627c6 (diff)
Remove unused function in bundle_env_mingw.cc
ARDOUR::ardour_dll_directory() has been used instead for some time
Diffstat (limited to 'gtk2_ardour/bundle_env_mingw.cc')
-rw-r--r--gtk2_ardour/bundle_env_mingw.cc43
1 files changed, 0 insertions, 43 deletions
diff --git a/gtk2_ardour/bundle_env_mingw.cc b/gtk2_ardour/bundle_env_mingw.cc
index 0d977cabba..7c543143ff 100644
--- a/gtk2_ardour/bundle_env_mingw.cc
+++ b/gtk2_ardour/bundle_env_mingw.cc
@@ -29,7 +29,6 @@
#include <windows.h>
#include <wingdi.h>
-#include <shlobj.h> // CSIDL_*
#include "ardour/ardour.h"
#include "ardour/search_paths.h"
@@ -37,53 +36,11 @@
#include "pbd/file_utils.h"
#include "pbd/epa.h"
-#include "pbd/windows_special_dirs.h"
using namespace std;
using namespace PBD;
using namespace ARDOUR;
-
-/* query top-level Ardour installation path.
- * Typically, this will be somehwere like
- * "C:\Program Files (x86)\Ardour"
- */
-const std::string
-get_install_path ()
-{
- const gchar* pExeRoot = g_win32_get_package_installation_directory_of_module (0);
-
- if (0 == pExeRoot) {
- HKEY key;
- DWORD size = PATH_MAX;
- char tmp[PATH_MAX+1];
- if (
-#ifdef __MINGW64__
- (ERROR_SUCCESS == RegOpenKeyExA (HKEY_LOCAL_MACHINE, "Software\\" PROGRAM_NAME "\\v" PROGRAM_VERSION "\\w64", 0, KEY_READ, &key))
-#else
- (ERROR_SUCCESS == RegOpenKeyExA (HKEY_LOCAL_MACHINE, "Software\\" PROGRAM_NAME "\\v" PROGRAM_VERSION "\\w32", 0, KEY_READ, &key))
-#endif
- &&(ERROR_SUCCESS == RegQueryValueExA (key, "Install_Dir", 0, NULL, reinterpret_cast<LPBYTE>(tmp), &size))
- )
- {
- pExeRoot = Glib::locale_to_utf8(tmp).c_str();
- }
- }
-
- if (0 == pExeRoot) {
- const char *program_files = PBD::get_win_special_folder (CSIDL_PROGRAM_FILES);
- if (program_files) {
- pExeRoot = g_build_filename(program_files, PROGRAM_NAME, NULL);
- }
- }
-
- if (pExeRoot && Glib::file_test(pExeRoot, Glib::FILE_TEST_EXISTS|Glib::FILE_TEST_IS_DIR)) {
- return std::string (pExeRoot);
- }
- return "";
-}
-
-
void
fixup_bundle_environment (int, char* [], string & localedir)
{