Skip to content

Commit 4cd4960

Browse files
committed
refactor: remove clear function and remove export shutdown
1 parent 0f0a5fb commit 4cd4960

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

libs/nodeplotlib/src/lib/nodeplotlib.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,7 @@ export function plot(data: Plot[] | Observable<Plot[]>, layout?: Layout) {
3838
]);
3939
}
4040

41-
/**
42-
* Clears all plots and shuts down the server if it
43-
* exists.
44-
*/
45-
export async function clear() {
46-
if (app) {
47-
await app.close();
48-
}
49-
}
50-
51-
export async function bootstrap(port: number) {
41+
async function bootstrap(port: number) {
5242
if (appRuns) {
5343
console.log('App is already up and running');
5444
return;
@@ -67,7 +57,7 @@ export async function bootstrap(port: number) {
6757
shutdownSubscription = bridgeService.shutdown$.subscribe(shutdown);
6858
}
6959

70-
export async function shutdown() {
60+
async function shutdown() {
7161
console.log('Server shutting down');
7262
shutdownSubscription?.unsubscribe();
7363
appRuns = false;

0 commit comments

Comments
 (0)