瀏覽代碼

Clean up.

Afshin Darian 6 年之前
父節點
當前提交
d7c0632a48

+ 0 - 3
packages/apputils-extension/tsconfig.json

@@ -17,9 +17,6 @@
     },
     {
       "path": "../mainmenu"
-    },
-    {
-      "path": "../services"
     }
   ]
 }

+ 0 - 15
packages/coreutils/src/statedb.ts

@@ -18,21 +18,6 @@ import { IDataConnector } from './interfaces';
 export const IStateDB = new Token<IStateDB>('@jupyterlab/coreutils:IStateDB');
 /* tslint:enable */
 
-/**
- * An object which holds an id/value pair.
- */
-export interface IStateItem {
-  /**
-   * The identifier key for a state item.
-   */
-  id: string;
-
-  /**
-   * The data value for a state item.
-   */
-  value: ReadonlyJSONValue;
-}
-
 /**
  * The description of a state database.
  */

+ 3 - 7
tests/test-coreutils/src/settingregistry.spec.ts

@@ -15,7 +15,7 @@ import { signalToPromise } from '@jupyterlab/testutils';
 
 import { JSONObject } from '@phosphor/coreutils';
 
-export class TestConnector extends StateDB {
+class TestConnector extends StateDB {
   schemas: { [key: string]: ISettingRegistry.ISchema } = {};
 
   constructor() {
@@ -38,12 +38,8 @@ export class TestConnector extends StateDB {
     return { id, data: { composite, user }, raw, schema, version };
   }
 
-  async list(
-    filter: string
-  ): Promise<{ ids: string[]; values: ISettingRegistry.IPlugin[] }> {
-    const { ids, values } = await super.list(filter);
-
-    return { ids, values: values as ISettingRegistry.IPlugin[] };
+  async list(): Promise<any> {
+    return Promise.reject('list method not implemented');
   }
 }