From 65d1f57a6fab9b999a32ac0a6cf45ade1ea3554a Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Wed, 9 Nov 2011 09:34:14 -0700
Subject: [PATCH] remove dead code

---
 bin/browserid                          | 19 +------------------
 resources/static/.well-known/host-meta | 13 -------------
 2 files changed, 1 insertion(+), 31 deletions(-)
 delete mode 100644 resources/static/.well-known/host-meta

diff --git a/bin/browserid b/bin/browserid
index f495e14fd..3b9a07784 100755
--- a/bin/browserid
+++ b/bin/browserid
@@ -71,15 +71,6 @@ if (!config.get('keysigner_url')) {
   process.exit(1);
 }
 
-function internal_redirector(new_url, suppress_noframes) {
-  return function(req, resp, next) {
-    if (suppress_noframes)
-      resp.removeHeader('x-frame-options');
-    req.url = new_url;
-    return next();
-  };
-}
-
 function router(app) {
   app.set("views", path.join(__dirname, "..", "resources", "views"));
 
@@ -334,14 +325,6 @@ app.use(function(req, resp, next) {
   return next();
 });
 
-// a tweak to get the content type of host-meta correct
-app.use(function(req, resp, next) {
-  if (req.url === '/.well-known/host-meta') {
-    resp.setHeader('content-type', 'text/xml');
-  }
-  next();
-});
-
 // Strict Transport Security
 app.use(function(req, resp, next) {
   if (overSSL) {
@@ -381,4 +364,4 @@ db.open(config.get('database'), function (error) {
   app.listen(bindTo.port, bindTo.host, function() {
     logger.info("running on http://" + app.address().address + ":" + app.address().port);
   });
-});
\ No newline at end of file
+});
diff --git a/resources/static/.well-known/host-meta b/resources/static/.well-known/host-meta
deleted file mode 100644
index eab9ec759..000000000
--- a/resources/static/.well-known/host-meta
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0' 
-     xmlns:hm='http://host-meta.net/xrd/1.0'>
-
-  <hm:Host xmlns='http://host-meta.net/xrd/1.0'>browserid.org</hm:Host>
-
-  <Link rel="https://browserid.org/vocab#publicKey" href="/pk"></Link>
-
-  <Link rel='lrdd' template='https://browserid.org/users/{uri}.xml'></Link>
-
-  <Link rel='other' value='something-different'></Link>
-</XRD>
-- 
GitLab