mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Remove unused Params.getAddress.
It was formerly used for the "broker" and "relay" query string
parameters, which were removed in
debe9c3748
.
This commit is contained in:
parent
d6d42e82aa
commit
c1f6548602
2 changed files with 0 additions and 40 deletions
|
@ -238,17 +238,6 @@ class Params {
|
|||
return Parse.byteCount(spec);
|
||||
}
|
||||
|
||||
// Get an object value and parse it as an address spec. Returns |defaultValue|
|
||||
// if param is not a key. Returns null on a parsing error.
|
||||
static getAddress(query, param, defaultValue) {
|
||||
var val;
|
||||
val = query[param];
|
||||
if (void 0 === val) {
|
||||
return defaultValue;
|
||||
}
|
||||
return Parse.address(val);
|
||||
}
|
||||
|
||||
// Get an object value and return it as a string. Returns default_val if param
|
||||
// is not a key.
|
||||
static getString(query, param, defaultValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue