[beast: 6/15] BSE: remove unused DataPocket code
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 6/15] BSE: remove unused DataPocket code
- Date: Mon, 5 Oct 2015 22:52:39 +0000 (UTC)
commit 4e67a88404bcd202ab1c0fec7a9824d4a1ee34a5
Author: Tim Janik <timj gnu org>
Date: Fri Sep 25 09:24:45 2015 +0200
BSE: remove unused DataPocket code
bse/Makefile.am | 6 +-
bse/bseapi.idl | 1 -
bse/bsedatapocket.cc | 673 ------------------------------------------------
bse/bsedatapocket.hh | 81 ------
bse/bsedatapocket.proc | 420 ------------------------------
bse/bseproject.proc | 33 ---
6 files changed, 3 insertions(+), 1211 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index e73217b..c0e3086 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -34,7 +34,7 @@ bse_public_headers = $(strip \
bsefilter.hh bsebiquadfilter.hh \
bseconstant.hh bseconstvalues.hh bsecontainer.hh bsecontextmerger.hh \
bseclientapi.hh \
- bsedatapocket.hh bseeditablesample.hh bseenums.hh bsegconfig.hh
\
+ bseeditablesample.hh bseenums.hh bsegconfig.hh \
bseglobals.hh bseglue.hh bseitem.hh bsejanitor.hh \
bsemain.hh bsemath.hh bsemathsignal.hh bseladspa.hh \
bsemidicontroller.hh bsemididevice.hh bsedevice.hh \
@@ -68,7 +68,7 @@ bse_sources = $(strip \
bsebus.cc bsecategories.cc \
bsefilter.cc bsebiquadfilter.cc bsefilter-ellf.cc \
bseconstant.cc bseconstvalues.cc bsecontainer.cc bsecontextmerger.cc \
- bsedatapocket.cc bseeditablesample.cc bseenums.cc bsegconfig.cc \
+ bseeditablesample.cc bseenums.cc bsegconfig.cc \
bseglobals.cc bseglue.cc bseitem.cc bsejanitor.cc \
bsemain.cc bsemath.cc bsemathsignal.cc bseladspa.cc \
bsemidicontroller.cc bsemididevice.cc bsedevice.cc \
@@ -115,7 +115,7 @@ idl_dummy_files = $(strip \
)
# BSE procedure sources
bse_proc_sources = $(strip \
- bsecategories.proc bsecontainer.proc bsedatapocket.proc bseeditablesample.proc \
+ bsecategories.proc bsecontainer.proc bseeditablesample.proc \
bsejanitor.proc bseprocedure.proc bseproject.proc \
bsesong.proc bsesource.proc \
bsetrack.proc bseitem.proc bsewave.proc bsewaveosc.proc
bsewaverepo.proc \
diff --git a/bse/bseapi.idl b/bse/bseapi.idl
index ca54915..2571420 100644
--- a/bse/bseapi.idl
+++ b/bse/bseapi.idl
@@ -648,7 +648,6 @@ interface Project : Container {
ErrorType restore_from_file (String file_name); ///< Load a project from file.
//Song create_song (String name); ///< Create a song for this project.
//WaveRepo get_wave_repo (); ///< Retrieve the project's unique wave repository.
- //DataPocket get_data_pocket (String name); ///< Retrieve a specifically named data pocket for this
project.
//CSynth create_csynth (String name); ///< Create a synthsizer network for this project.
//MidiSynth create_midi_synth (String name); ///< Create a MIDI synthesizer network for this project.
//MidiNotifier get_midi_notifier(); ///< Retrieve the project's midi notifier object.
diff --git a/bse/bseproject.proc b/bse/bseproject.proc
index ce3eb50..dbb1265 100644
--- a/bse/bseproject.proc
+++ b/bse/bseproject.proc
@@ -8,7 +8,6 @@
#include <bse/bsewaverepo.hh>
#include <bse/bsecsynth.hh>
#include <bse/bsemidisynth.hh>
-#include <bse/bsedatapocket.hh>
#include <bse/bsemidifile.hh>
#include <bse/bsemidireceiver.hh>
#include <bse/bsemidinotifier.hh>
@@ -151,38 +150,6 @@ METHOD (BseProject, get-wave-repo) {
return Bse::ERROR_NONE;
}
-METHOD (BseProject, get-data-pocket) {
- HELP = "Retrieve a specifically named data pocket for this project";
- IN = bse_param_spec_object ("project", "Project", "The project",
- BSE_TYPE_PROJECT, SFI_PARAM_STANDARD);
- IN = sfi_pspec_string ("name", "Name", "Name of the data pocket",
- NULL, SFI_PARAM_STANDARD);
- OUT = bse_param_spec_object ("data_pocket", "Data Pocket", "The data pocket",
- BSE_TYPE_DATA_POCKET, 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 char *name = sfi_value_get_string (in_values++);
- BseItem *item;
-
- /* check parameters */
- if (!BSE_IS_PROJECT (project) || !name)
- return Bse::ERROR_PROC_PARAM_INVAL;
-
- /* action */
- item = bse_project_lookup_typed_item (project, BSE_TYPE_DATA_POCKET, name);
- if (!item)
- item = (BseItem*) bse_container_new_child (BSE_CONTAINER (project), BSE_TYPE_DATA_POCKET, "uname", name,
NULL);
-
- /* set output parameters */
- bse_value_set_object (out_values++, item);
-
- return Bse::ERROR_NONE;
-}
-
METHOD (BseProject, create-csynth) {
HELP = "Create a synthsizer network for this project.";
IN = bse_param_spec_object ("project", "Project", "The project",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]