From 2eb0754b4e9287805d374cd8bce3c25ae3347601 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Fri, 27 May 2022 03:34:02 +0200 Subject: [PATCH] Remove unused code --- GCryptCLI/src/ModuleDataFormatter.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/GCryptCLI/src/ModuleDataFormatter.cpp b/GCryptCLI/src/ModuleDataFormatter.cpp index 35814b2..a737618 100644 --- a/GCryptCLI/src/ModuleDataFormatter.cpp +++ b/GCryptCLI/src/ModuleDataFormatter.cpp @@ -287,16 +287,6 @@ std::string ModuleDataFormatter::CustomBase2Bin( Block::BLOCK_SIZE_BITS ); - // Pad to BLOCK_SIZE - //binary = PadStringToLength(binary, Block::BLOCK_SIZE_BITS, '0', false); - - // Because a set may not perfectly fit a block, transcoding it back - // to binary may yield more than 512 bit. These other bits could never - // be 1. We have to trim them. - //if (binary.length() > Block::BLOCK_SIZE_BITS) { - // binary = binary.substr(0, Block::BLOCK_SIZE_BITS); - //} - if (binary.length() != Block::BLOCK_SIZE_BITS) { throw std::invalid_argument("ModuleDataFormatter::CustomBase2Bin() received input that doesn't translate to a bitstring of length 512!"); }