aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-03 21:47:43 +0100
committerMax Kellermann <max@duempel.org>2015-03-03 21:48:45 +0100
commitf677f42be7a106fde811327c8d475493c6ec10ad (patch)
tree12616e04607c8269974a36beb38bbbe5565ace18 /src
parenta5760670efca8ea6c4b4d425ea5e0479c760b48e (diff)
downloadmpd-f677f42be7a106fde811327c8d475493c6ec10ad.tar.gz
mpd-f677f42be7a106fde811327c8d475493c6ec10ad.tar.xz
mpd-f677f42be7a106fde811327c8d475493c6ec10ad.zip
system/FileDescriptor: remove bogus assertions
Diffstat (limited to 'src')
-rw-r--r--src/system/FileDescriptor.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx
index 65206e5f0..b8b5a4fdf 100644
--- a/src/system/FileDescriptor.cxx
+++ b/src/system/FileDescriptor.cxx
@@ -60,8 +60,6 @@
bool
FileDescriptor::Open(const char *pathname, int flags)
{
- assert(!IsDefined());
-
fd = ::open(pathname, flags);
return IsDefined();
}
@@ -125,8 +123,6 @@ FileDescriptor::SetBlocking()
bool
FileDescriptor::CreateEventFD(unsigned initval)
{
- assert(!IsDefined());
-
fd = ::eventfd(initval, EFD_NONBLOCK|EFD_CLOEXEC);
return fd >= 0;
}