mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Remove useless code
This commit is contained in:
parent
f50d28be98
commit
68827466ca
@ -52,16 +52,6 @@ class Fetch {
|
|||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
extractParamsFromUrl(url) {
|
|
||||||
let re = /\${(\w+)}/g;
|
|
||||||
let match = null;
|
|
||||||
let results = [];
|
|
||||||
while (match = re.exec(url)) {
|
|
||||||
results.push(match[1]);
|
|
||||||
}
|
|
||||||
return results;
|
|
||||||
}
|
|
||||||
|
|
||||||
prepareUrl(url, params) {
|
prepareUrl(url, params) {
|
||||||
let newUrl = this.getUrl(url);
|
let newUrl = this.getUrl(url);
|
||||||
let re = /\${(\w+)}/g;
|
let re = /\${(\w+)}/g;
|
||||||
|
Loading…
Reference in New Issue
Block a user