From 4bbbfb8e8139e690ea084b72ccc2de71fdca1e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Sun, 2 Aug 2020 03:50:26 -0300 Subject: Simplify encoding and decoding --- src/common/file.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common/file.cpp') diff --git a/src/common/file.cpp b/src/common/file.cpp index a9d8c2b..626f352 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -3,11 +3,9 @@ #include #include -class File { +struct File { int descriptor; - public: - File(const char *filepath, int flags) { descriptor = open(filepath, flags); } -- cgit v1.2.3