mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Removed some unnecessary JUCE_MODULE_AVAILABLE_* checks
This commit is contained in:
parent
77787bd3ae
commit
2bfed0b354
5 changed files with 1 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue