aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-07-11 02:35:15 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-07-11 02:35:15 -0400
commit1a140c93e9c04b7507d470621e953ddc2a99520b (patch)
tree5baee45b08bae1ed382b51eeccfc8e2e39f7e558
parent9c4ed0eba1ee65271435a950f50fcbc85417eb0b (diff)
removed extraneous docs namespace
-rw-r--r--src/client/documents/Documents.ts16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 5a3f9574f..961cd3479 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -57,20 +57,6 @@ export enum DocumentType {
LINK = "link"
}
-export namespace DocTypeUtils {
-
- export function values(includeNone: boolean = true): string[] {
- let types = Object.values(DocumentType);
- return includeNone ? types : types.filter(key => key !== DocumentType.NONE);
- }
-
- export function keys(includeNone: boolean = true): string[] {
- let types = Object.keys(DocumentType);
- return includeNone ? types : types.filter(key => key !== DocumentType.NONE);
- }
-
-}
-
export interface DocumentOptions {
x?: number;
y?: number;
@@ -174,7 +160,7 @@ export namespace Docs {
export async function initialize(): Promise<void> {
// non-guid string ids for each document prototype
let suffix = "Proto";
- let prototypeIds: string[] = DocTypeUtils.values(false).map(type => type + suffix);
+ let prototypeIds = Object.values(DocumentType).filter(type => type !== DocumentType.NONE).map(type => type + suffix);
// fetch the actual prototype documents from the server
let actualProtos = await DocServer.GetRefFields(prototypeIds);