From 9504b89ce29453a23bcc065eb2fc211f1762511f Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Thu, 9 Apr 2015 15:47:57 +0200 Subject: [PATCH] Cleanup: Remove unnecessary SHA1Transform() declaration. Nobody needs to see or call it before it is implemented down below. BUG=None TEST=rtc_unittests --gtest_filter=Sha1DigestTest.* R=pthatcher@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/45039004 Patch from Thiago Farina . Cr-Commit-Position: refs/heads/master@{#8962} --- webrtc/base/sha1.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webrtc/base/sha1.cc b/webrtc/base/sha1.cc index afc5569fd..68530540d 100644 --- a/webrtc/base/sha1.cc +++ b/webrtc/base/sha1.cc @@ -104,7 +104,7 @@ namespace rtc { -void SHA1Transform(uint32 state[5], const uint8 buffer[64]); +namespace { #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) @@ -206,6 +206,8 @@ void SHA1Transform(uint32 state[5], const uint8 buffer[64]) { state[4] += e; } +} // namespace + // SHA1Init - Initialize new context. void SHA1Init(SHA1_CTX* context) { // SHA1 initialization constants.