[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Remove unused Params.getString.
commit 76b81bcf77be01565365833ade805397ed093dc9
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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;
- }
-
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits