Remove iostream optimization from buffer

This commit is contained in:
Rico Tiongson 2019-03-03 22:02:17 +08:00
parent 30e1850753
commit b15f1e61bb

View File

@ -23,7 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../util/_index.hpp" #include "../util/_index.hpp"
#include "../gesture/_index.hpp" #include "../gesture/_index.hpp"
#include <cstdio> // fgets_unlocked, stdin #include <cstdio> // fgets_unlocked, stdin
#include <iostream> // std::ios, std::cout, std::cin
/** /**
* Starts the comfortable-swipe service by buffering libinput debug-events. * Starts the comfortable-swipe service by buffering libinput debug-events.
@ -32,11 +31,6 @@ namespace comfortable_swipe::service
{ {
void buffer() void buffer()
{ {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
std::cout.tie(0);
std::cout.flush();
// read config file // read config file
auto config = comfortable_swipe::util::read_config_file(__COMFORTABLE_SWIPE__CONFIG__); auto config = comfortable_swipe::util::read_config_file(__COMFORTABLE_SWIPE__CONFIG__);