[tor-commits] [snowflake/master] Remove unused Params.getString.

dcf at torproject.org dcf at torproject.org
Fri Jul 19 00:12:13 UTC 2019


commit 76b81bcf77be01565365833ade805397ed093dc9
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Jul 18 16:32:56 2019 -0600

    Remove unused Params.getString.
---
 proxy/util.js | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/proxy/util.js b/proxy/util.js
index c237734..3235f79 100644
--- a/proxy/util.js
+++ b/proxy/util.js
@@ -238,17 +238,6 @@ class Params {
     return Parse.byteCount(spec);
   }
 
-  // Get an object value and return it as a string. Returns default_val if param
-  // is not a key.
-  static getString(query, param, defaultValue) {
-    var val;
-    val = query[param];
-    if (void 0 === val) {
-      return defaultValue;
-    }
-    return val;
-  }
-
 }
 
 



More information about the tor-commits mailing list