diff --git a/server/src/core/server/services/comments/pipeline/phases/external.ts b/server/src/core/server/services/comments/pipeline/phases/external.ts index 899cbcc2c8..c0315cac30 100644 --- a/server/src/core/server/services/comments/pipeline/phases/external.ts +++ b/server/src/core/server/services/comments/pipeline/phases/external.ts @@ -275,7 +275,6 @@ async function processPhase( const mapActions = ( response: ExternalModerationResponse ): Partial => { - // TODO: marcushaddon - implement after deciding what to do return { ...response, commentActions: response.actions, @@ -326,7 +325,6 @@ export const external: IntermediateModerationPhase = async (ctx) => { name: phase.name, analyzedAt: ctx.now, result: { - // NOTE: these will be split into comment/moderation actions later actions: response.actions, status: response.status, tags: response.tags, diff --git a/server/src/core/server/stacks/createComment.ts b/server/src/core/server/stacks/createComment.ts index 4db5806b7b..5c15b08366 100644 --- a/server/src/core/server/stacks/createComment.ts +++ b/server/src/core/server/stacks/createComment.ts @@ -465,7 +465,6 @@ export default async function create( false, { actionCounts, - // BOOKMARK (marcushaddon): need more clarity on what these options do } ); } diff --git a/server/src/core/server/stacks/editComment.ts b/server/src/core/server/stacks/editComment.ts index d360b3c2c2..dd45455dc5 100644 --- a/server/src/core/server/stacks/editComment.ts +++ b/server/src/core/server/stacks/editComment.ts @@ -277,7 +277,6 @@ export default async function edit( false, { actionCounts, - // BOOKMARK (marcushaddon): need more clarity on what these options do } ); } diff --git a/server/src/core/server/utils/partition.ts b/server/src/core/server/utils/partition.ts deleted file mode 100644 index 650f3ecd84..0000000000 --- a/server/src/core/server/utils/partition.ts +++ /dev/null @@ -1,19 +0,0 @@ -export const partition = ( - items: T[], - predicate: (item: T) => boolean -): { - passed: T[]; - failed: T[]; -} => { - const passed: T[] = []; - const failed: T[] = []; - for (const item of items) { - if (predicate(item)) { - passed.push(item); - } else { - failed.push(item); - } - } - - return { passed, failed }; -};