[beast: 14/15] BSE: remove unused bse_item_undo_depth, bse_item_redo_depth
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 14/15] BSE: remove unused bse_item_undo_depth, bse_item_redo_depth
- Date: Mon, 5 Oct 2015 22:53:20 +0000 (UTC)
commit c5fda82bb6e22978441e3e4e5a667bae5094c47c
Author: Tim Janik <timj gnu org>
Date: Fri Sep 25 11:50:05 2015 +0200
BSE: remove unused bse_item_undo_depth, bse_item_redo_depth
bse/bseitem.proc | 52 ----------------------------------------------------
1 files changed, 0 insertions(+), 52 deletions(-)
---
diff --git a/bse/bseitem.proc b/bse/bseitem.proc
index 2a843d2..7a02962 100644
--- a/bse/bseitem.proc
+++ b/bse/bseitem.proc
@@ -582,55 +582,3 @@ METHOD (BseItem, clear-undo) {
return Bse::ERROR_NONE;
}
-
-METHOD (BseItem, undo-depth) {
- HELP = "Call the undo-depth function of the project corresponding to this item if any.";
- IN = bse_param_spec_object ("item", NULL, NULL,
- BSE_TYPE_ITEM, SFI_PARAM_STANDARD);
- OUT = sfi_pspec_int ("undo_depth", NULL, "Number of times undo can be called",
- 0, 0, G_MAXINT, 1, SFI_PARAM_STANDARD);
-} BODY (BseProcedureClass *proc,
- const GValue *in_values,
- GValue *out_values)
-{
- /* extract parameter values */
- BseItem *self = (BseItem*) bse_value_get_object (in_values++);
-
- /* check parameters */
- if (!BSE_IS_ITEM (self))
- return Bse::ERROR_PROC_PARAM_INVAL;
-
- int depth = 0;
- Bse::ProjectIface *project = bse_item_get_project (self)->as<Bse::ProjectIface*>();
- if (project)
- depth = project->undo_depth();
-
- /* set output parameters */
- sfi_value_set_int (out_values++, depth);
-
- return Bse::ERROR_NONE;
-}
-
-METHOD (BseItem, redo-depth) {
- HELP = "Call the redo-depth function of the project corresponding to this item if any.";
- IN = bse_param_spec_object ("item", NULL, NULL,
- BSE_TYPE_ITEM, SFI_PARAM_STANDARD);
- OUT = sfi_pspec_int ("redo_depth", NULL, "Number of times redo can be called",
- 0, 0, G_MAXINT, 1, SFI_PARAM_STANDARD);
-} BODY (BseProcedureClass *proc,
- const GValue *in_values,
- GValue *out_values)
-{
- /* extract parameter values */
- BseItem *self = (BseItem*) bse_value_get_object (in_values++);
- /* check parameters */
- if (!BSE_IS_ITEM (self))
- return Bse::ERROR_PROC_PARAM_INVAL;
- int depth = 0;
- Bse::ProjectIface *project = bse_item_get_project (self)->as<Bse::ProjectIface*>();
- if (project)
- depth = project->redo_depth();
- /* set output parameters */
- sfi_value_set_int (out_values++, depth);
- return Bse::ERROR_NONE;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]