Skip to content

Commit

Permalink
Removed unused function.
Browse files Browse the repository at this point in the history
It will conflict with later patches.
  • Loading branch information
falkTX committed Aug 27, 2012
1 parent 99fe4d0 commit 1350796
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions remotepluginserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,32 +170,6 @@ RemotePluginServer::sizeShm()
}
}

void
RemotePluginServer::dispatch(int timeout)
{
struct pollfd pfd[2];

pfd[0].fd = m_controlRequestFd;
pfd[1].fd = m_processFd;
pfd[0].events = pfd[1].events = POLLIN | POLLPRI | POLLERR | POLLHUP | POLLNVAL;

if (poll(pfd, 2, timeout) < 0) {
throw RemotePluginClosedException();
}

if ((pfd[0].revents & POLLIN) || (pfd[0].revents & POLLPRI)) {
dispatchControl();
} else if (pfd[1].revents) {
throw RemotePluginClosedException();
}

if ((pfd[1].revents & POLLIN) || (pfd[1].revents & POLLPRI)) {
dispatchProcess();
} else if (pfd[1].revents) {
throw RemotePluginClosedException();
}
}

void
RemotePluginServer::dispatchControl(int timeout)
{
Expand Down
1 change: 0 additions & 1 deletion remotepluginserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class RemotePluginServer
virtual bool setVSTChunk(std::vector<char>) = 0;
//Deryabin Andrew: vst chunks support: end code

void dispatch(int timeout = -1); // may throw RemotePluginClosedException
void dispatchControl(int timeout = -1); // may throw RemotePluginClosedException
void dispatchProcess(int timeout = -1); // may throw RemotePluginClosedException

Expand Down

0 comments on commit 1350796

Please sign in to comment.