aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-22 13:49:31 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-22 14:04:27 +0900
commit4ba2fdbfb065c971f4a0b9b1dbab8957e7fba38d (patch)
tree5c757dc1af92d8bfad7b123dee40083cc5d8b600 /src/util.cpp
parent211b7c71bd06b3624ef695ec60451a53f0572a20 (diff)
Remove struct unieque_fd
Any code doesn't use it anymore. Change-Id: I64a3d518d12d33e399261678f715aa466d6df6a3 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/util.cpp b/src/util.cpp
index be1a046..37977f2 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -25,14 +25,6 @@
static char ERROR_FLAG[6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"};
-unique_fd::~unique_fd()
-{
- if (this->fd != -1)
- {
- close(this->fd);
- }
-}
-
void rectangle::fit(unsigned long to_width, unsigned long to_height)
{
// fit rect within (to_width x to_height)