Browse Source

UI: Remove InitApplicationBundle() function

gxalpha 3 years ago
parent
commit
dde2fe209a
5 changed files with 0 additions and 21 deletions
  1. 0 2
      UI/obs-app.cpp
  2. 0 6
      UI/platform-osx.mm
  3. 0 5
      UI/platform-windows.cpp
  4. 0 5
      UI/platform-x11.cpp
  5. 0 3
      UI/platform.hpp

+ 0 - 2
UI/obs-app.cpp

@@ -1281,8 +1281,6 @@ void OBSApp::AppInit()
 {
 	ProfileScope("OBSApp::AppInit");
 
-	if (!InitApplicationBundle())
-		throw "Failed to initialize application bundle";
 	if (!MakeUserDirs())
 		throw "Failed to create required user directories";
 	if (!InitGlobalConfig())

+ 0 - 6
UI/platform-osx.mm

@@ -48,12 +48,6 @@ bool GetDataFilePath(const char *data, string &output)
 	return !access(output.c_str(), R_OK);
 }
 
-#pragma deprecated(InitApplicationBundle)
-bool InitApplicationBundle()
-{
-	return true;
-}
-
 void CheckIfAlreadyRunning(bool &already_running)
 {
 	try {

+ 0 - 5
UI/platform-windows.cpp

@@ -59,11 +59,6 @@ bool GetDataFilePath(const char *data, string &output)
 	return check_path(data, OBS_DATA_PATH "/obs-studio/", output);
 }
 
-bool InitApplicationBundle()
-{
-	return true;
-}
-
 string GetDefaultVideoSavePath()
 {
 	wchar_t path_utf16[MAX_PATH];

+ 0 - 5
UI/platform-x11.cpp

@@ -201,11 +201,6 @@ bool GetDataFilePath(const char *data, string &output)
 	return false;
 }
 
-bool InitApplicationBundle()
-{
-	return true;
-}
-
 string GetDefaultVideoSavePath()
 {
 	return string(getenv("HOME"));

+ 0 - 3
UI/platform.hpp

@@ -27,9 +27,6 @@ class QWidget;
 /* Gets the path of obs-studio specific data files (such as locale) */
 bool GetDataFilePath(const char *data, std::string &path);
 
-/* Updates the working directory for OSX application bundles */
-bool OBS_DEPRECATED InitApplicationBundle();
-
 std::string GetDefaultVideoSavePath();
 
 std::vector<std::string> GetPreferredLocales();