diff options
author | David Robillard <d@drobilla.net> | 2015-04-05 02:50:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-04-05 02:50:11 +0000 |
commit | 215b2de7c9a7170ab785120df87f5af322a961a3 (patch) | |
tree | 98d8253c07ac0525358f0dc3fab66ef8aaa0cf5e | |
parent | c6151909efefdb6c560b92c9d81af5b52a492582 (diff) | |
download | ingen-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
-rw-r--r-- | src/server/PreProcessor.cpp | 12 |
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... |