aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
Diffstat (limited to 'sample')
-rw-r--r--sample/bls_tool.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/sample/bls_tool.cpp b/sample/bls_tool.cpp
index 158f7b2..dfa3a07 100644
--- a/sample/bls_tool.cpp
+++ b/sample/bls_tool.cpp
@@ -25,7 +25,6 @@ void strip(std::string& str)
void readMessage(std::string& str)
{
str.clear();
-#if 1
std::string line;
std::getline(std::cin, line); // remove first blank line
while (std::getline(std::cin, line)) {
@@ -34,14 +33,6 @@ void readMessage(std::string& str)
}
strip(str);
if (!str.empty()) return;
-#else
- // retry once if blank line exists
- for (size_t i = 0; i < 2; i++) {
- std::getline(std::cin, str);
- strip(str);
- if (!str.empty()) return;
- }
-#endif
throw std::runtime_error("readMessage:message is empty");
}