Commit 2ee94ddd authored by James Hawkins's avatar James Hawkins Committed by Commit Bot

CryptAuth: Remove unused CalculateDeviceUserId.

R=khorimoto@chromium.org

Bug: 899324
Test: none
Change-Id: Ia4d3093f9f70dd3aeeb0a49d87475bc3f4f2c58d
Reviewed-on: https://chromium-review.googlesource.com/c/1330891Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: James Hawkins <jhawkins@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607272}
parent 60366cee
...@@ -4,12 +4,9 @@ ...@@ -4,12 +4,9 @@
#include "components/cryptauth/cryptauth_enrollment_utils.h" #include "components/cryptauth/cryptauth_enrollment_utils.h"
#include <math.h>
#include <stddef.h> #include <stddef.h>
#include "base/base64url.h"
#include "base/md5.h" #include "base/md5.h"
#include "base/sha1.h"
namespace cryptauth { namespace cryptauth {
...@@ -32,13 +29,4 @@ int64_t HashStringToInt64(const std::string& string) { ...@@ -32,13 +29,4 @@ int64_t HashStringToInt64(const std::string& string) {
return hash; return hash;
} }
std::string CalculateDeviceUserId(const std::string& device_id,
const std::string& user_id) {
std::string device_user_id;
base::Base64UrlEncode(base::SHA1HashString(device_id + "|" + user_id),
base::Base64UrlEncodePolicy::INCLUDE_PADDING,
&device_user_id);
return device_user_id;
}
} // namespace cryptauth } // namespace cryptauth
...@@ -10,10 +10,6 @@ ...@@ -10,10 +10,6 @@
namespace cryptauth { namespace cryptauth {
// Calculates an id for the specified user on the specified device.
std::string CalculateDeviceUserId(const std::string& device_id,
const std::string& user_id);
// Hashes |string| to an int64_t value. These int64_t hashes are used to fill // Hashes |string| to an int64_t value. These int64_t hashes are used to fill
// the GcmDeviceInfo proto to upload to CryptAuth. // the GcmDeviceInfo proto to upload to CryptAuth.
int64_t HashStringToInt64(const std::string& string); int64_t HashStringToInt64(const std::string& string);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment