From 2d1a13ab0a9b9bb111ed299c28e9f503228afe11 Mon Sep 17 00:00:00 2001 From: Kristin Aoki Date: Tue, 3 Aug 2021 10:09:11 -0400 Subject: [PATCH] Remove unused definitions --- src/shared/data/__factories__/block.factory.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/shared/data/__factories__/block.factory.js b/src/shared/data/__factories__/block.factory.js index 0a8a65e7..93269fe6 100644 --- a/src/shared/data/__factories__/block.factory.js +++ b/src/shared/data/__factories__/block.factory.js @@ -31,20 +31,8 @@ Factory.define('block') ) .attr( 'id', - ['id', 'block_id', 'type', 'courseId', 'hash_key'], - (id, blockId, type, courseId, hashKey) => { - if (hashKey) { - return hashKey; - } - - if (id) { - return id; - } - - const courseInfo = courseId.split(':')[1]; - - return `block-v1:${courseInfo}+type@${type}+block@${blockId}`; - }, + ['hash_key'], + (hashKey) => (hashKey), ) .attr( 'decoded_id', ['block_id', 'type', 'courseId'],