remove warning callback from miscelaneous function table

This commit is contained in:
Vincent Sanders 2019-11-11 16:58:17 +00:00
parent 0e16c01cdc
commit dae0ff3d26
10 changed files with 2 additions and 24 deletions

View File

@ -678,9 +678,6 @@ static nserror verify_misc_register(struct gui_misc_table *gmt)
if (gmt->schedule == NULL) {
return NSERROR_BAD_PARAMETER;
}
if (gmt->warning == NULL) {
return NSERROR_BAD_PARAMETER;
}
/* fill in the optional entries with defaults */
if (gmt->quit == NULL) {

View File

@ -6368,7 +6368,6 @@ static struct gui_search_web_table amiga_search_web_table = {
static struct gui_misc_table amiga_misc_table = {
.schedule = ami_schedule,
.warning = amiga_warn_user,
.quit = gui_quit,
.launch_url = gui_launch_url,

View File

@ -1109,7 +1109,6 @@ static struct gui_fetch_table atari_fetch_table = {
static struct gui_misc_table atari_misc_table = {
.schedule = atari_schedule,
.warning = atari_warn_user,
.quit = gui_quit,
};

View File

@ -993,7 +993,6 @@ static struct gui_fetch_table beos_fetch_table = {
static struct gui_misc_table beos_misc_table = {
beos_schedule,
beos_warn_user,
gui_quit,
gui_launch_url,
NULL, //cert_verify

View File

@ -2136,7 +2136,6 @@ static struct gui_window_table framebuffer_window_table = {
static struct gui_misc_table framebuffer_misc_table = {
.schedule = framebuffer_schedule,
.warning = fb_warn_user,
.quit = gui_quit,
};

View File

@ -1139,7 +1139,6 @@ static nserror nsgtk_option_init(int *pargc, char** argv)
static struct gui_misc_table nsgtk_misc_table = {
.schedule = nsgtk_schedule,
.warning = nsgtk_warning,
.quit = gui_quit,
.launch_url = gui_launch_url,

View File

@ -245,7 +245,6 @@ static bool nslog_stream_configure(FILE *fptr)
static struct gui_misc_table monkey_misc_table = {
.schedule = monkey_schedule,
.warning = monkey_warn_user,
.quit = monkey_quit,
.launch_url = gui_launch_url,

View File

@ -2427,7 +2427,6 @@ static struct gui_fetch_table riscos_fetch_table = {
static struct gui_misc_table riscos_misc_table = {
.schedule = riscos_schedule,
.warning = ro_warn_user,
.quit = gui_quit,
.launch_url = gui_launch_url,

View File

@ -310,7 +310,6 @@ static nserror nsw32_messages_init(char **respaths)
static struct gui_misc_table win32_misc_table = {
.schedule = win32_schedule,
.warning = win32_warning,
};
/**

View File

@ -22,8 +22,8 @@
* Interface to platform-specific miscellaneous browser operation table.
*/
#ifndef _NETSURF_MISC_H_
#define _NETSURF_MISC_H_
#ifndef NETSURF_MISC_H_
#define NETSURF_MISC_H_
struct form_control;
struct gui_window;
@ -57,17 +57,6 @@ struct gui_misc_table {
*/
nserror (*schedule)(int t, void (*callback)(void *p), void *p);
/**
* Warn the user of an event.
*
* \param[in] message A warning looked up in the message
* translation table
* \param[in] detail Additional text to be displayed or NULL.
* \return NSERROR_OK on success or error code if there was a
* faliure displaying the message to the user.
*/
nserror (*warning)(const char *message, const char *detail);
/* Optional entries */