Browse Source

Removed some unnecessary JUCE_MODULE_AVAILABLE_* checks

tags/2021-05-28
ed 5 years ago
parent
commit
2bfed0b354
5 changed files with 1 additions and 17 deletions
  1. +0
    -2
      modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm
  2. +0
    -2
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp
  3. +1
    -3
      modules/juce_audio_plugin_client/utility/juce_PluginHostType.h
  4. +0
    -5
      modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp
  5. +0
    -5
      modules/juce_events/messages/juce_MessageManager.h

+ 0
- 2
modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm View File

@@ -1934,10 +1934,8 @@ private:
#if JUCE_IOS
bool JUCE_CALLTYPE juce_isInterAppAudioConnected() { return false; }
void JUCE_CALLTYPE juce_switchToHostApplication() {}
#if JUCE_MODULE_AVAILABLE_juce_gui_basics
Image JUCE_CALLTYPE juce_getIAAHostIcon (int) { return {}; }
#endif
#endif
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#endif

+ 0
- 2
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp View File

@@ -149,7 +149,6 @@ void JUCE_CALLTYPE juce_switchToHostApplication()
holder->switchToHostApplication();
}
#if JUCE_MODULE_AVAILABLE_juce_gui_basics
Image JUCE_CALLTYPE juce_getIAAHostIcon (int size)
{
if (auto holder = StandalonePluginHolder::getInstance())
@@ -158,6 +157,5 @@ Image JUCE_CALLTYPE juce_getIAAHostIcon (int size)
return Image();
}
#endif
#endif
#endif

+ 1
- 3
modules/juce_audio_plugin_client/utility/juce_PluginHostType.h View File

@@ -264,10 +264,8 @@ public:
bool isInterAppAudioConnected() const;
/** Switches to the host application when Inter-App Audio is used on iOS. */
void switchToHostApplication() const;
#if JUCE_MODULE_AVAILABLE_juce_gui_basics
/** Gets the host app's icon when Inter-App Audio is used on iOS. */
Image getHostIcon (int size) const;
#endif
//==============================================================================
/** Returns the complete absolute path of the host application executable. */


+ 0
- 5
modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp View File

@@ -145,10 +145,7 @@ using namespace juce;
#if JucePlugin_Enable_IAA && JucePlugin_Build_Standalone && JUCE_IOS && (! JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP)
extern bool JUCE_CALLTYPE juce_isInterAppAudioConnected();
extern void JUCE_CALLTYPE juce_switchToHostApplication();
#if JUCE_MODULE_AVAILABLE_juce_gui_basics
extern Image JUCE_CALLTYPE juce_getIAAHostIcon (int);
#endif
#endif
bool PluginHostType::isInterAppAudioConnected() const
@@ -183,7 +180,6 @@ bool PluginHostType::isInAAXAudioSuite (AudioProcessor& processor)
return false;
}
#if JUCE_MODULE_AVAILABLE_juce_gui_basics
namespace juce {
extern Image JUCE_API getIconFromApplication (const String&, const int);
@@ -206,4 +202,3 @@ Image PluginHostType::getHostIcon (int size) const
}
}
#endif

+ 0
- 5
modules/juce_events/messages/juce_MessageManager.h View File

@@ -28,11 +28,6 @@ class ThreadPoolJob;
class ActionListener;
class ActionBroadcaster;
//==============================================================================
#if JUCE_MODULE_AVAILABLE_juce_opengl
class OpenGLContext;
#endif
//==============================================================================
/** See MessageManager::callFunctionOnMessageThread() for use of this function type. */
using MessageCallbackFunction = void* (void* userData);


Loading…
Cancel
Save