[beast: 12/15] BSE: remove unused project procedures: list-uname-paths, find-item, match-items-by-uname



commit d701c63663da219e9556fd3d774871776bdcc038
Author: Tim Janik <timj gnu org>
Date:   Fri Sep 25 11:41:56 2015 +0200

    BSE: remove unused project procedures: list-uname-paths, find-item, match-items-by-uname

 bse/bseproject.proc |   95 ---------------------------------------------------
 1 files changed, 0 insertions(+), 95 deletions(-)
---
diff --git a/bse/bseproject.proc b/bse/bseproject.proc
index dbb1265..e752a84 100644
--- a/bse/bseproject.proc
+++ b/bse/bseproject.proc
@@ -258,101 +258,6 @@ METHOD (BseProject, remove-snet) {
   return Bse::ERROR_NONE;
 }
 
-METHOD (BseProject, list-uname-paths) {
-  HELP  = ("List uname paths for all items of a specified type within this project. "
-           "By their uname paths, items are uniquely identifyable within a project.");
-  IN    = bse_param_spec_object ("project", NULL, NULL,
-                                 BSE_TYPE_PROJECT, SFI_PARAM_STANDARD);
-  IN    = sfi_pspec_string ("item_type", NULL, NULL,
-                            NULL, SFI_PARAM_STANDARD);
-  OUT   = bse_param_spec_boxed ("uname_paths", "Uname Paths", NULL, BSE_TYPE_STRING_SEQ, SFI_PARAM_STANDARD);
-} BODY (BseProcedureClass *proc,
-        const GValue      *in_values,
-        GValue            *out_values)
-{
-  /* extract parameter values */
-  BseProject *project = (BseProject*) bse_value_get_object (in_values++);
-  const gchar *tname  = sfi_value_get_string (in_values++);
-  GType type          = tname ? g_type_from_name (tname) : 0;
-
-  /* check parameters */
-  if (!BSE_IS_PROJECT (project) || !g_type_is_a (type, BSE_TYPE_ITEM))
-    return Bse::ERROR_PROC_PARAM_INVAL;
-
-  /* set output parameters */
-  bse_value_take_boxed (out_values++, bse_project_list_upaths (project, type));
-
-  return Bse::ERROR_NONE;
-}
-
-METHOD (BseProject, find-item) {
-  HELP  = "Find an item within a project, given its uname path.";
-  IN    = bse_param_spec_object ("project", NULL, NULL,
-                                 BSE_TYPE_PROJECT, SFI_PARAM_STANDARD);
-  IN    = sfi_pspec_string ("uname_path", NULL, NULL,
-                            NULL, SFI_PARAM_STANDARD);
-  OUT   = bse_param_spec_object ("item", NULL, NULL,
-                                 BSE_TYPE_ITEM, SFI_PARAM_STANDARD);
-} BODY (BseProcedureClass *proc,
-        const GValue      *in_values,
-        GValue            *out_values)
-{
-  /* extract parameter values */
-  BseProject *project = (BseProject*) bse_value_get_object (in_values++);
-  const gchar *string = sfi_value_get_string (in_values++);
-
-  /* check parameters */
-  if (!BSE_IS_PROJECT (project) || !string)
-    return Bse::ERROR_PROC_PARAM_INVAL;
-
-  /* set output parameters */
-  bse_value_set_object (out_values++, bse_container_resolve_upath (BSE_CONTAINER (project), string));
-
-  return Bse::ERROR_NONE;
-}
-
-METHOD (BseProject, match-items-by-uname) {
-  HELP  = "Retrieve all items of a specific type within a project with matching uname";
-  IN    = bse_param_spec_object ("project", NULL, NULL,
-                                 BSE_TYPE_PROJECT, SFI_PARAM_STANDARD);
-  IN    = sfi_pspec_string ("item_type", NULL, NULL,
-                            NULL, SFI_PARAM_STANDARD);
-  IN    = sfi_pspec_string ("uname", NULL, NULL,
-                            NULL, SFI_PARAM_STANDARD);
-  OUT   = bse_param_spec_boxed ("item_list", "Item List", NULL, BSE_TYPE_ITEM_SEQ, SFI_PARAM_STANDARD);
-} BODY (BseProcedureClass *proc,
-        const GValue      *in_values,
-        GValue            *out_values)
-{
-  /* extract parameter values */
-  BseProject *project = (BseProject*) bse_value_get_object (in_values++);
-  const gchar *tname  = sfi_value_get_string (in_values++);
-  const gchar *string = sfi_value_get_string (in_values++);
-  GType type          = tname ? g_type_from_name (tname) : 0;
-  GList *list, *free_list;
-  BseItemSeq *iseq;
-
-  /* check parameters */
-  if (!BSE_IS_PROJECT (project) || !string || !g_type_is_a (type, BSE_TYPE_ITEM))
-    return Bse::ERROR_PROC_PARAM_INVAL;
-
-  /* action */
-  iseq = bse_item_seq_new ();
-  free_list = bse_objects_list_by_uname (type, string);
-  for (list = free_list; list; list = list->next)
-    if (bse_item_get_project ((BseItem*) list->data) == project)
-      {
-        bse_item_seq_append (iseq, (BseItem*) list->data);
-        break;
-      }
-  g_list_free (free_list);
-
-  /* set output parameters */
-  bse_value_take_boxed (out_values++, iseq);
-
-  return Bse::ERROR_NONE;
-}
-
 METHOD (BseProject, get-supers) {
   HELP  = "Retrieve all supers of this project.";
   IN    = bse_param_spec_object ("project", NULL, NULL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]