remove netsurf_poll callback and netsurf main loop

This commit is contained in:
Vincent Sanders 2014-10-13 01:18:19 +01:00
parent d0655bafc2
commit bfc7552d8d
4 changed files with 3 additions and 28 deletions

View File

@ -980,7 +980,6 @@ static struct gui_fetch_table beos_fetch_table = {
}; };
static struct gui_browser_table beos_browser_table = { static struct gui_browser_table beos_browser_table = {
NULL, //nsbeos_gui_poll,
beos_schedule, beos_schedule,
gui_quit, gui_quit,
gui_launch_url, gui_launch_url,

View File

@ -465,12 +465,6 @@ struct gui_search_table {
struct gui_browser_table { struct gui_browser_table {
/* Mandantory entries */ /* Mandantory entries */
/**
* called to let the frontend update its state and run any
* I/O operations.
*/
void (*poll)(bool active);
/** /**
* Schedule a callback. * Schedule a callback.
* *
@ -491,7 +485,9 @@ struct gui_browser_table {
/* Optional entries */ /* Optional entries */
/** called to allow the gui to cleanup */ /**
* called to allow the gui to cleanup.
*/
void (*quit)(void); void (*quit)(void);
/** /**

View File

@ -84,8 +84,6 @@
*/ */
#define MINIMUM_MEMORY_CACHE_SIZE (2 * 1024 * 1024) #define MINIMUM_MEMORY_CACHE_SIZE (2 * 1024 * 1024)
bool netsurf_quit = false;
static void netsurf_lwc_iterator(lwc_string *str, void *pw) static void netsurf_lwc_iterator(lwc_string *str, void *pw)
{ {
LOG(("[%3u] %.*s", str->refcnt, (int) lwc_string_length(str), lwc_string_data(str))); LOG(("[%3u] %.*s", str->refcnt, (int) lwc_string_length(str), lwc_string_data(str)));
@ -251,18 +249,6 @@ nserror netsurf_init(const char *messages, const char *store_path)
} }
/**
* Gui NetSurf main loop.
*/
int netsurf_main_loop(void)
{
while (!netsurf_quit) {
guit->browser->poll(false);
}
return 0;
}
/** /**
* Clean up components used by gui NetSurf. * Clean up components used by gui NetSurf.
*/ */

View File

@ -22,7 +22,6 @@
#include <stdbool.h> #include <stdbool.h>
#include "utils/errors.h" #include "utils/errors.h"
extern bool netsurf_quit;
extern const char * const netsurf_version; extern const char * const netsurf_version;
extern const int netsurf_version_major; extern const int netsurf_version_major;
extern const int netsurf_version_minor; extern const int netsurf_version_minor;
@ -45,11 +44,6 @@ nserror netsurf_register(struct netsurf_table *table);
*/ */
nserror netsurf_init(const char *messages, const char *store_path); nserror netsurf_init(const char *messages, const char *store_path);
/**
* Run event loop.
*/
extern int netsurf_main_loop(void);
/** /**
* Finalise NetSurf core * Finalise NetSurf core
*/ */