Skip to content

Commit

Permalink
ase/: remove all JSONIPC_INHERIT() macros, now unused
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Nov 19, 2024
1 parent f020a83 commit 553749f
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions ase/clapdevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ struct ClapPropertyImpl : public Property, public virtual EmittableImpl {
};

// == ClapDeviceImpl ==
JSONIPC_INHERIT (ClapDeviceImpl, Device);

ClapDeviceImpl::ClapDeviceImpl (ClapPluginHandleP claphandle) :
handle_ (claphandle)
{
Expand Down
2 changes: 0 additions & 2 deletions ase/clip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ ClipNote::operator== (const ClipNote &o) const
}

// == ClipImpl ==
JSONIPC_INHERIT (ClipImpl, Clip);

ClipImpl::ClipImpl (TrackImpl &parent)
{
track_ = &parent;
Expand Down
2 changes: 0 additions & 2 deletions ase/crawler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ ResourceCrawler::ResourceCrawler() :
{}

// == FileCrawler ==
JSONIPC_INHERIT (FileCrawler, ResourceCrawler);

FileCrawler::FileCrawler (const String &cwd, bool constraindir, bool constrainfile) :
cwd_ ("/"), constraindir_ (constraindir), constrainfile_ (constrainfile)
{
Expand Down
2 changes: 0 additions & 2 deletions ase/gadget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Gadget::Gadget() :
{}

// == GadgetImpl ==
JSONIPC_INHERIT (GadgetImpl, Gadget);

GadgetImpl::~GadgetImpl()
{}

Expand Down
5 changes: 0 additions & 5 deletions ase/internal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ using Ase::String;
/// Create a Ase::StringVector, from a const char* C-style array.
#define STRING_VECTOR_FROM_ARRAY(ConstCharArray) ASE_STRING_VECTOR_FROM_ARRAY(ConstCharArray)

/// Register `IMPL` with Jsonipc and indicate it inherits from `INTERFACE`.
#define JSONIPC_INHERIT(IMPL, INTERFACE) \
[[maybe_unused]] static bool ASE_CPP_PASTE2 (ase_inherit__, __COUNTER__) = \
( Jsonipc::Class< IMPL >().inherit< INTERFACE >() , 0 )

/// Register `func` as an integrity test.
#define TEST_INTEGRITY(FUNC) static void FUNC() __attribute__ ((__cold__, __unused__)); \
static ::Ase::Test::IntegrityCheck ASE_CPP_PASTE2 (__Ase__Test__IntegrityCheck__line, __LINE__) { #FUNC, FUNC, 'I' }
Expand Down
2 changes: 0 additions & 2 deletions ase/monitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
namespace Ase {

// == MonitorImpl ==
JSONIPC_INHERIT (MonitorImpl, Monitor);

MonitorImpl::MonitorImpl()
{}

Expand Down
2 changes: 0 additions & 2 deletions ase/nativedevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
namespace Ase {

// == NativeDeviceImpl ==
JSONIPC_INHERIT (NativeDeviceImpl, NativeDevice);

NativeDeviceImpl::NativeDeviceImpl (const String &aseid, AudioProcessor::StaticInfo static_info, AudioProcessorP aproc) :
proc_ (aproc), combo_ (std::dynamic_pointer_cast<AudioCombo> (aproc)), info_ (extract_info (aseid, static_info))
{
Expand Down
2 changes: 0 additions & 2 deletions ase/project.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ Project::last_project()
}

// == ProjectImpl ==
JSONIPC_INHERIT (ProjectImpl, Project);

using StringPairS = std::vector<std::tuple<String,String>>;

struct ProjectImpl::PStorage {
Expand Down
2 changes: 0 additions & 2 deletions ase/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
namespace Ase {

// == ServerImpl ==
JSONIPC_INHERIT (ServerImpl, Server);

static constexpr size_t telemetry_size = 4 * 1024 * 1024;

ServerImpl *SERVER = nullptr;
Expand Down
2 changes: 0 additions & 2 deletions ase/track.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
namespace Ase {

// == TrackImpl ==
JSONIPC_INHERIT (TrackImpl, Track);

TrackImpl::TrackImpl (ProjectImpl &project, bool masterflag)
{
gadget_flags (masterflag ? MASTER_TRACK : 0);
Expand Down

0 comments on commit 553749f

Please sign in to comment.