(core) Remove a bunch of dead code

Summary: Removed test/aws/, most of app/server/lib/, 3 dirs in app/lambda/, corresponding tests, and more!

Test Plan: a lot of this is quite the opposite...

Reviewers: dsagal, paulfitz

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2894
This commit is contained in:
Alex Hall
2021-07-01 17:15:43 +02:00
parent 61e7c8a127
commit ea01ca814d
19 changed files with 73 additions and 208 deletions

View File

@@ -19,13 +19,4 @@ export class LoginSession implements ILoginSession {
public async testSetProfile(profile: UserProfile|null): Promise<void> {
// do nothing
}
public async updateTokenForTesting(idToken: string): Promise<void> {
// do nothing
}
public async getCurrentTokenForTesting(): Promise<string|null> {
return null;
}
public async useTestToken(idToken: string): Promise<void> {
// do nothing
}
}

View File

@@ -1,4 +0,0 @@
export function addStandaloneMethods(...args: any[]) {
console.log("Not adding any standalone methods");
return {} as any;
}

View File

@@ -1,9 +1,7 @@
import { HomeDBManager } from 'app/gen-server/lib/HomeDBManager';
import { ActiveDoc } from 'app/server/lib/ActiveDoc';
import { DocManager } from 'app/server/lib/DocManager';
import { ICreate } from 'app/server/lib/ICreate';
import { LoginSession } from 'app/server/lib/LoginSession';
import { NSandboxCreator } from 'app/server/lib/NSandbox';
import {ActiveDoc} from 'app/server/lib/ActiveDoc';
import {ICreate} from 'app/server/lib/ICreate';
import {LoginSession} from 'app/server/lib/LoginSession';
import {NSandboxCreator} from 'app/server/lib/NSandbox';
// Use raw python - update when pynbox or other solution is set up for core.
const sandboxCreator = new NSandboxCreator('unsandboxed');
@@ -12,11 +10,11 @@ export const create: ICreate = {
LoginSession() {
return new LoginSession();
},
Billing(dbManager: HomeDBManager) {
Billing() {
return {
addEndpoints(app: any) { /* do nothing */ },
addEndpoints() { /* do nothing */ },
addEventHandlers() { /* do nothing */ },
addWebhooks(app: any) { /* do nothing */ }
addWebhooks() { /* do nothing */ }
};
},
Notifier() {
@@ -32,9 +30,6 @@ export const create: ICreate = {
},
ExternalStorage() { return undefined; },
ActiveDoc(docManager, docName, options) { return new ActiveDoc(docManager, docName, options); },
DocManager(storageManager, pluginManager, homeDBManager, gristServer) {
return new DocManager(storageManager, pluginManager, homeDBManager, gristServer);
},
NSandbox(options) {
return sandboxCreator.create(options);
},