Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Aug 6, 2021
1 parent 19b675f commit 362a0d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/encrypted_saved_objects/server/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function createEncryptedSavedObjectsStartMock() {
function createEncryptedSavedObjectsClienttMock(opts?: EncryptedSavedObjectsClientOptions) {
return {
getDecryptedAsInternalUser: jest.fn(),
resolveDecryptedIdAsInternalUser: jest.fn(),
} as jest.Mocked<EncryptedSavedObjectsClient>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ export interface EncryptedSavedObjectsClient {
id: string,
options?: SavedObjectsBaseOptions
) => Promise<SavedObject<T>>;
resolveDecryptedIdAsInternalUser: <T = unknown>(
type: string,
id: string,
options?: SavedObjectsBaseOptions
) => Promise<string>;
}

export function setupSavedObjects({
Expand Down Expand Up @@ -101,15 +96,6 @@ export function setupSavedObjects({
)) as T,
};
},
resolveDecryptedIdAsInternalUser: async (
type: string,
id: string,
options?: SavedObjectsBaseOptions
): Promise<string> => {
const [internalRepository] = await internalRepositoryAndTypeRegistryPromise;
const { saved_object: savedObject } = await internalRepository.resolve(type, id, options);
return savedObject.id;
},
};
};
}

0 comments on commit 362a0d3

Please sign in to comment.