main: Remove unused function load_backend_new()

This function is unused throughout the entire weston source tree, so
remove it. It seems that the "load_backend" function is the one
currently being used

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
Chris Michael 2015-11-30 15:51:48 -05:00 committed by Derek Foreman
parent 29b846eaa6
commit 5ffbfffaf7

View File

@ -648,23 +648,6 @@ load_backend_old(struct weston_compositor *compositor, const char *backend,
return backend_init(compositor, argc, argv, wc, NULL);
}
/* Temporary function to be replaced by weston_compositor_load_backend(). */
static int
load_backend_new(struct weston_compositor *compositor, const char *backend,
struct weston_backend_config *config_base)
{
int (*backend_init)(struct weston_compositor *c,
int *argc, char *argv[],
struct weston_config *config,
struct weston_backend_config *config_base);
backend_init = weston_load_module(backend, "backend_init");
if (!backend_init)
return -1;
return backend_init(compositor, NULL, NULL, NULL, config_base);
}
static int
load_backend(struct weston_compositor *compositor, const char *backend,
int *argc, char **argv, struct weston_config *config)