summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ingen/AtomWriter.hpp3
-rw-r--r--src/AtomWriter.cpp11
2 files changed, 3 insertions, 11 deletions
diff --git a/ingen/AtomWriter.hpp b/ingen/AtomWriter.hpp
index c591c528..c7ac3cc6 100644
--- a/ingen/AtomWriter.hpp
+++ b/ingen/AtomWriter.hpp
@@ -84,8 +84,7 @@ private:
void forge_arc(const Raul::Path& tail, const Raul::Path& head);
void forge_request(LV2_Atom_Forge_Frame* frame, LV2_URID type);
- void finish_msg();
- int32_t next_id();
+ void finish_msg();
URIMap& _map;
URIs& _uris;
diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp
index 78e54ffa..7c956ece 100644
--- a/src/AtomWriter.cpp
+++ b/src/AtomWriter.cpp
@@ -64,12 +64,6 @@ AtomWriter::finish_msg()
_out.len = 0;
}
-int32_t
-AtomWriter::next_id()
-{
- return _id ? ++_id : 0;
-}
-
void
AtomWriter::bundle_begin()
{
@@ -121,10 +115,9 @@ AtomWriter::forge_request(LV2_Atom_Forge_Frame* frame, LV2_URID type)
{
lv2_atom_forge_object(&_forge, frame, 0, type);
- const int32_t id = next_id();
- if (id) {
+ if (_id) {
lv2_atom_forge_key(&_forge, _uris.patch_sequenceNumber);
- lv2_atom_forge_int(&_forge, id);
+ lv2_atom_forge_int(&_forge, _id);
}
}