From 715c57564a61092a767b6adfa14a636757623af2 Mon Sep 17 00:00:00 2001 From: Jiancong <94389147@qq.com> Date: Wed, 4 Apr 2018 17:09:24 +0800 Subject: [PATCH] Remove debug info print. --- external/android-emugl/host/tools/emugen/ApiGen.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/external/android-emugl/host/tools/emugen/ApiGen.cpp b/external/android-emugl/host/tools/emugen/ApiGen.cpp index e368055..fc6c031 100644 --- a/external/android-emugl/host/tools/emugen/ApiGen.cpp +++ b/external/android-emugl/host/tools/emugen/ApiGen.cpp @@ -1215,10 +1215,8 @@ int ApiGen::genDecoderImpl(const std::string &filename) fprintf(fp, "\t\t\tm_lock.lock(); \n" "\t\t\tauto pro = m_programs.find(var_program); \n" - "\t\t\tif (pro == m_programs.end()) \n" - "\t\t\t{\n" - "\t\t\t\tDEBUG(\"This should not happened!\"); \n" - "\t\t\t} else { \n" + "\t\t\tif (pro != m_programs.end()) \n" + "\t\t\t{ \n" "\t\t\t\tm_programs.erase(pro); \n" "\t\t\t}\n" "\t\t\tm_lock.unlock();\n"); @@ -1226,10 +1224,8 @@ int ApiGen::genDecoderImpl(const std::string &filename) fprintf(fp, "\t\t\tm_lock.lock(); \n\ \t\t\tauto shader = m_shaders.find(var_shader); \n\ - \t\t\tif (shader == m_shaders.end()) \n\ + \t\t\tif (shader != m_shaders.end()) \n\ \t\t\t{ \n\ - \t\t\t\tDEBUG(\"This should not happened!\"); \n\ - \t\t\t} else { \n\ \t\t\t\tm_shaders.erase(shader); \n\ \t\t\t} \n\ \t\t\tm_lock.unlock(); \n");