aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-09-06 16:33:38 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-09-06 16:33:38 +0800
commit1a4fb4458cbf69628a541c3957b53e01ea661cd4 (patch)
tree01a0bde0c4583d1684fa732d73c2d23488ba38b3
parenta70abcd3dd2b80fe4a8ef49bbf151ad76ed01d29 (diff)
downloaddexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.tar
dexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.tar.gz
dexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.tar.bz2
dexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.tar.lz
dexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.tar.xz
dexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.tar.zst
dexon-bls-1a4fb4458cbf69628a541c3957b53e01ea661cd4.zip
remove old code
-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");
}