remove unused warn_user API

This commit is contained in:
Vincent Sanders 2016-05-02 16:08:59 +01:00
parent 4f9dc97141
commit 6da3b3102c
2 changed files with 0 additions and 24 deletions

View File

@ -32,12 +32,6 @@
#include <errno.h>
#include <curl/curl.h>
/* required for depricated warn_user interface */
#include <stdbool.h>
#include "utils/errors.h"
#include "desktop/gui_misc.h"
#include "desktop/gui_internal.h"
#include "utils/config.h"
#include "utils/log.h"
#include "utils/messages.h"
@ -581,9 +575,3 @@ nserror nsc_strntimet(const char *str, size_t size, time_t *timep)
return NSERROR_OK;
}
/* exported interface documented in utils/utils.h */
void warn_user(const char *message, const char *detail)
{
guit->misc->warning(message, detail);
}

View File

@ -116,16 +116,4 @@ struct dirent;
*/
bool is_dir(const char *path);
/**
* Warn the user of an event.
*
* \warning depricated interface, this calls the warning entry in the
* miscellaneous gui table and discards the return code.
*
* \param[in] message A warning looked up in the message translation table
* \param[in] detail Additional text to be displayed or NULL.
*/
void warn_user(const char *message, const char *detail);
#endif