(core) Remove code for unused welcome flows

Summary: Removes code that was marked for removal.

Test Plan: Existing tests still pass.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3289
This commit is contained in:
George Gevoian
2022-02-23 21:50:26 -08:00
parent 83ba2957bf
commit fa68b790bb
8 changed files with 54 additions and 205 deletions

View File

@@ -37,12 +37,18 @@ export class BaseAPI {
};
}
// Make a JSON request to the given URL, and read the esponse as JSON. Handles errors, and
// Make a JSON request to the given URL, and read the response as JSON. Handles errors, and
// counts pending requests in the same way as BaseAPI methods do.
public static requestJson(url: string, init: RequestInit = {}): Promise<unknown> {
return new BaseAPI().requestJson(url, init);
}
// Make a request to the given URL, and read the response. Handles errors, and
// counts pending requests in the same way as BaseAPI methods do.
public static request(url: string, init: RequestInit = {}): Promise<Response> {
return new BaseAPI().request(url, init);
}
private static _numPendingRequests: number = 0;
protected fetch: typeof fetch;