From 463b288335e7b39f5653166917d9f76c79b01869 Mon Sep 17 00:00:00 2001 From: ergo720 Date: Thu, 2 Aug 2018 18:47:15 +0200 Subject: [PATCH] Remove unneeded check --- src/Common/CxbxCommon.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Common/CxbxCommon.cpp b/src/Common/CxbxCommon.cpp index 7eb2883a0..4051da03e 100644 --- a/src/Common/CxbxCommon.cpp +++ b/src/Common/CxbxCommon.cpp @@ -180,9 +180,6 @@ void unix2dos(std::string& string) { size_t position = 0; while (true) { - if (position > string.length()) { - break; - } position = string.find('\n', position); if (position == std::string::npos) { break;