summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-04-05 02:50:11 +0000
committerDavid Robillard <d@drobilla.net>2015-04-05 02:50:11 +0000
commit215b2de7c9a7170ab785120df87f5af322a961a3 (patch)
tree98d8253c07ac0525358f0dc3fab66ef8aaa0cf5e /src
parentc6151909efefdb6c560b92c9d81af5b52a492582 (diff)
downloadingen-215b2de7c9a7170ab785120df87f5af322a961a3.tar.gz
ingen-215b2de7c9a7170ab785120df87f5af322a961a3.tar.bz2
ingen-215b2de7c9a7170ab785120df87f5af322a961a3.zip
Remove dead code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5663 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/PreProcessor.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp
index a053e024..1223aad4 100644
--- a/src/server/PreProcessor.cpp
+++ b/src/server/PreProcessor.cpp
@@ -77,14 +77,10 @@ PreProcessor::event(Event* const ev)
unsigned
PreProcessor::process(ProcessContext& context, PostProcessor& dest, size_t limit)
{
- Event* const head = _head.load();
- if (!head) {
- return 0;
- }
-
- size_t n_processed = 0;
- Event* ev = head;
- Event* last = ev;
+ Event* const head = _head.load();
+ size_t n_processed = 0;
+ Event* ev = head;
+ Event* last = ev;
while (ev && ev->is_prepared() && ev->time() < context.end()) {
if (ev->time() < context.start()) {
// Didn't get around to executing in time, oh well...