aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-07 11:40:37 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-07 11:40:37 -0700
commit4399679161e9f2ed072120b176f01b30a0ab7042 (patch)
tree81f93a390292c2a61da4288ddebf2f5eceebdc83 /src/node
parent0253f141a6e46121d6e03d54ce9d23eb02be9c74 (diff)
Removed now-extaneous function
Diffstat (limited to 'src/node')
-rw-r--r--src/node/index.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/node/index.js b/src/node/index.js
index 25d8ce6e3b..ba6bac3971 100644
--- a/src/node/index.js
+++ b/src/node/index.js
@@ -95,32 +95,6 @@ exports.load = function load(filename, format) {
};
/**
- * Get a function that a client can use to update metadata with authentication
- * information from a Google Auth credential object, which comes from the
- * google-auth-library.
- * @param {Object} credential The credential object to use
- * @return {function(Object, callback)} Metadata updater function
- */
-exports.getGoogleAuthDelegate = function getGoogleAuthDelegate(credential) {
- /**
- * Update a metadata object with authentication information.
- * @param {string} authURI The uri to authenticate to
- * @param {Object} metadata Metadata object
- * @param {function(Error, Object)} callback
- */
- return function updateMetadata(authURI, metadata, callback) {
- credential.getRequestMetadata(authURI, function(err, header) {
- if (err) {
- callback(err);
- return;
- }
- metadata.add('authorization', header.Authorization);
- callback(null, metadata);
- });
- };
-};
-
-/**
* @see module:src/server.Server
*/
exports.Server = server.Server;