eekboard context: Remove unused struct
This commit is contained in:
@ -48,9 +48,6 @@ static guint signals[LAST_SIGNAL] = { 0, };
|
|||||||
struct _EekboardContextServicePrivate {
|
struct _EekboardContextServicePrivate {
|
||||||
LevelKeyboard *keyboard; // currently used keyboard
|
LevelKeyboard *keyboard; // currently used keyboard
|
||||||
|
|
||||||
// Maybe TODO: it's used only for fetching layout type.
|
|
||||||
// Maybe let UI push the type to this structure?
|
|
||||||
ServerContextService *ui; // unowned reference
|
|
||||||
/// Needed for keymap changes after keyboard updates
|
/// Needed for keymap changes after keyboard updates
|
||||||
struct submission *submission; // unowned
|
struct submission *submission; // unowned
|
||||||
};
|
};
|
||||||
@ -276,10 +273,6 @@ void eekboard_context_service_set_submission(EekboardContextService *context, st
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void eekboard_context_service_set_ui(EekboardContextService *context, ServerContextService *ui) {
|
|
||||||
context->priv->ui = ui;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void settings_update_layout(struct gsettings_tracker *self) {
|
static void settings_update_layout(struct gsettings_tracker *self) {
|
||||||
// The layout in the param must be the same layout as held by context.
|
// The layout in the param must be the same layout as held by context.
|
||||||
g_autofree gchar *keyboard_layout = NULL;
|
g_autofree gchar *keyboard_layout = NULL;
|
||||||
|
|||||||
@ -300,7 +300,6 @@ main (int argc, char **argv)
|
|||||||
if (instance.dbus_handler) {
|
if (instance.dbus_handler) {
|
||||||
dbus_handler_set_ui_context(instance.dbus_handler, instance.ui_context);
|
dbus_handler_set_ui_context(instance.dbus_handler, instance.ui_context);
|
||||||
}
|
}
|
||||||
eekboard_context_service_set_ui(instance.settings_context, instance.ui_context);
|
|
||||||
|
|
||||||
session_register();
|
session_register();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user