aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/get_byte.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/get_byte.h')
-rw-r--r--src/lib/utils/get_byte.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/utils/get_byte.h b/src/lib/utils/get_byte.h
index 0846befbd..14f55b97b 100644
--- a/src/lib/utils/get_byte.h
+++ b/src/lib/utils/get_byte.h
@@ -12,18 +12,6 @@
namespace Botan {
-/**
-* Byte extraction
-* @param byte_num which byte to extract, 0 == highest byte
-* @param input the value to extract from
-* @return byte byte_num of input
-*/
-template<typename T> inline byte get_byte(size_t byte_num, T input)
- {
- return static_cast<byte>(
- input >> ((sizeof(T)-1-(byte_num&(sizeof(T)-1))) << 3)
- );
- }
}