Remove another unused function

flatpak_context_load_for_app was not used.

Closes: #2252
Approved by: matthiasclasen
This commit is contained in:
Matthias Clasen
2018-10-17 20:16:07 -04:00
committed by Atomic Bot
parent ea5e4c7b32
commit 9da443f26f
2 changed files with 0 additions and 21 deletions

View File

@@ -119,8 +119,6 @@ gboolean flatpak_context_allows_features (FlatpakContext *context,
FlatpakContext *flatpak_context_load_for_deploy (FlatpakDeploy *deploy,
GError **error);
FlatpakContext *flatpak_context_load_for_app (const char *app_id,
GError **error);
FlatpakExports *flatpak_context_get_exports (FlatpakContext *context,
const char *app_id);

View File

@@ -2676,25 +2676,6 @@ flatpak_context_load_for_deploy (FlatpakDeploy *deploy,
return g_steal_pointer (&context);
}
FlatpakContext *
flatpak_context_load_for_app (const char *app_id,
GError **error)
{
g_autofree char *app_ref = NULL;
g_autoptr(FlatpakDeploy) app_deploy = NULL;
app_ref = flatpak_find_current_ref (app_id, NULL, error);
if (app_ref == NULL)
return NULL;
app_deploy = flatpak_find_deploy_for_ref (app_ref, NULL, NULL, error);
if (app_deploy == NULL)
return NULL;
return flatpak_context_load_for_deploy (app_deploy, error);
}
static char *
calculate_ld_cache_checksum (GVariant *app_deploy_data,
GVariant *runtime_deploy_data,