mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
export function addStandaloneMethods(...args: any[]) {
|
||||
console.log("Not adding any standalone methods");
|
||||
return {} as any;
|
||||
}
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user