Get rid of these two pointer functions

This commit is contained in:
twinaphex 2019-07-11 04:28:49 +02:00
parent 691c884434
commit 69fb32cd68
3 changed files with 1 additions and 22 deletions

View File

@ -4593,21 +4593,6 @@ const ui_browser_window_t *ui_companion_driver_get_browser_window_ptr(void)
return ui->browser_window;
}
#ifdef HAVE_QT
const ui_application_t *ui_companion_driver_get_qt_application_ptr(void)
{
return ui_companion_qt.application;
}
#endif
const ui_application_t *ui_companion_driver_get_application_ptr(void)
{
const ui_companion_driver_t *ui = ui_companion;
if (!ui)
return NULL;
return ui->application;
}
static void ui_companion_driver_msg_queue_push(
const char *msg, unsigned priority, unsigned duration, bool flush)
{

View File

@ -417,7 +417,7 @@ static char** waiting_argv;
#ifdef HAVE_QT
const ui_application_t *application = &ui_application_qt;
#else
const ui_application_t *application = ui_companion_driver_get_application_ptr();
const ui_application_t *application = &ui_application_cocoa;
#endif
if (application)
application->process_events();

View File

@ -218,12 +218,6 @@ const ui_browser_window_t *ui_companion_driver_get_browser_window_ptr(void);
const ui_window_t *ui_companion_driver_get_window_ptr(void);
const ui_application_t *ui_companion_driver_get_application_ptr(void);
#ifdef HAVE_QT
const ui_application_t *ui_companion_driver_get_qt_application_ptr(void);
#endif
void ui_companion_driver_log_msg(const char *msg);
void *ui_companion_driver_get_main_window(void);