Skip to content

Commit

Permalink
remove some unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
  • Loading branch information
stevecassidy committed Nov 2, 2023
1 parent 362f9ab commit 4146e31
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 84 deletions.
2 changes: 1 addition & 1 deletion src/couchdb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
COUCHDB_INTERNAL_URL,
LOCAL_COUCHDB_AUTH,
} from '../buildconfig';
import {ProjectID} from '../datamodel/core';
import {ProjectID} from 'faims3-datamodel';
import {ProjectObject} from '../datamodel/database';
import {
initialiseDirectoryDB,
Expand Down
2 changes: 1 addition & 1 deletion src/couchdb/notebooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
getProjectsDB,
} from '.';
import {CLUSTER_ADMIN_GROUP_NAME} from '../buildconfig';
import {ProjectID, resolve_project_id} from '../datamodel/core';
import {ProjectID, resolve_project_id} from 'faims3-datamodel';
import {
ProjectMetadata,
ProjectObject,
Expand Down
2 changes: 1 addition & 1 deletion src/couchdb/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import {ProjectRole} from 'faims3-datamodel/build/src/types';
import {getUsersDB} from '.';
import {CLUSTER_ADMIN_GROUP_NAME} from '../buildconfig';
import {NonUniqueProjectID, ProjectID} from '../datamodel/core';
import {NonUniqueProjectID, ProjectID} from 'faims3-datamodel';
import {
AllProjectRoles,
ConductorRole,
Expand Down
74 changes: 0 additions & 74 deletions src/datamodel/core.ts

This file was deleted.

6 changes: 1 addition & 5 deletions src/datamodel/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
AttributeValuePairID,
ProjectID,
ListingID,
} from './core';
} from 'faims3-datamodel';

export const UI_SPECIFICATION_NAME = 'ui-specification';
export const PROJECT_SPECIFICATION_PREFIX = 'project-specification';
Expand Down Expand Up @@ -260,7 +260,3 @@ export interface ProjectUIModel {
* discriminated by the prefix of the object's id
*/
export type ProjectDataObject = AttributeValuePair | Revision | EncodedRecord;

export function isRecord(doc: ProjectDataObject): doc is EncodedRecord {
return (<EncodedRecord>doc).record_format_version !== undefined;
}
2 changes: 1 addition & 1 deletion src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import handlebars from 'handlebars';
import {body, validationResult} from 'express-validator';
import QRCode from 'qrcode';
import {app} from './core';
import {NonUniqueProjectID} from './datamodel/core';
import {NonUniqueProjectID} from 'faims3-datamodel';
import {AllProjectRoles} from './datamodel/users';

// BBS 20221101 Adding this as a proxy for the pouch db url
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type {
OtherRoles,
UserServiceProfiles,
} from './datamodel/users';
import type {NonUniqueProjectID} from './datamodel/core';
import type {NonUniqueProjectID} from 'faims3-datamodel';

export type DoneFunction = (err?: Error | null, profile?: any) => void;
export type UserProfileCallback = (
Expand Down

0 comments on commit 4146e31

Please sign in to comment.