[beast: 11/12] BSE: remove bse_category_from_id() which is now unused
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 11/12] BSE: remove bse_category_from_id() which is now unused
- Date: Thu, 24 Sep 2015 20:09:29 +0000 (UTC)
commit 1029fbcacc31905ba19200f075e14358aad29796
Author: Tim Janik <timj gnu org>
Date: Mon Sep 21 09:39:41 2015 +0200
BSE: remove bse_category_from_id() which is now unused
bse/bsecategories.cc | 26 --------------------------
bse/bsecategories.hh | 1 -
bse/bsecategories.proc | 22 ----------------------
3 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/bse/bsecategories.cc b/bse/bsecategories.cc
index a8dbaa7..89a56f8 100644
--- a/bse/bsecategories.cc
+++ b/bse/bsecategories.cc
@@ -320,29 +320,3 @@ bse_categories_from_type (GType type)
}
return cseq;
}
-
-BseCategory*
-bse_category_from_id (guint id)
-{
- CEntry *centry;
-
- g_return_val_if_fail (id > 0, NULL);
-
- centry = (CEntry*) sfi_ustore_lookup (category_ustore, id);
- if (centry)
- {
- BseCategory *cat = bse_category_new ();
- g_free (cat->category);
- cat->category = g_strdup (g_quark_to_string (centry->category));
- cat->category_id = centry->category_id;
- cat->mindex = centry->mindex;
- cat->lindex = centry->lindex;
- g_free (cat->type);
- cat->type = g_strdup (g_type_name (centry->type));
- if (cat->icon)
- bse_ic0n_free (cat->icon);
- cat->icon = centry->icon ? bse_ic0n_copy_shallow (centry->icon) : NULL;
- return cat;
- }
- return NULL;
-}
diff --git a/bse/bsecategories.hh b/bse/bsecategories.hh
index 07b0ee6..19ee96f 100644
--- a/bse/bsecategories.hh
+++ b/bse/bsecategories.hh
@@ -24,7 +24,6 @@ BseCategorySeq* bse_categories_match (const gchar *pattern,
BseCategorySeq* bse_categories_match_typed (const gchar *pattern,
GType base_type);
BseCategorySeq* bse_categories_from_type (GType type);
-BseCategory* bse_category_from_id (guint id);
void bse_categories_register_stock_module (const gchar *untranslated_category_trunk,
GType type,
const guint8 *pixstream);
diff --git a/bse/bsecategories.proc b/bse/bsecategories.proc
index a1a49da..7379fa0 100644
--- a/bse/bsecategories.proc
+++ b/bse/bsecategories.proc
@@ -69,25 +69,3 @@ BODY (BseProcedureClass *proc,
return Bse::ERROR_NONE;
}
-
-PROCEDURE (bse-category-from-id, "Categories/From ID") {
- HELP = "Find a BSE category from it's unique ID.";
- IN = sfi_pspec_int ("category_id", "Category ID", NULL,
- 1, 1, G_MAXINT, 1, SFI_PARAM_STANDARD);
- OUT = bse_param_spec_boxed ("category", "Category", NULL, BSE_TYPE_CATEGORY, SFI_PARAM_STANDARD);
-}
-BODY (BseProcedureClass *proc,
- const GValue *in_values,
- GValue *out_values)
-{
- /* extract parameter values */
- guint id = sfi_value_get_int (in_values++);
- BseCategory *cat;
-
- cat = bse_category_from_id (id);
-
- /* set output parameters */
- bse_value_take_boxed (out_values++, cat);
-
- return Bse::ERROR_NONE;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]