Skip to content

Commit

Permalink
chore: method doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 11, 2023
1 parent 2135dc0 commit 7a7724f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ export interface PlayoutPartInstanceModel {
infiniteInstanceId: PieceInstanceInfiniteId
): PlayoutPieceInstanceModel

/** @deprecated HACK */
insertPlannedPiece(doc: Omit<PieceInstancePiece, 'startPartId'>): PlayoutPieceInstanceModel
/**
* Insert a Piece as if it were originally planned at the time of ingest
* This is a weird operation to have for playout, but it is a needed part of the SyncIngestChanges flow
* @param piece Piece to insert into this PartInstance
* @returns The inserted PlayoutPieceInstanceModel
*/
insertPlannedPiece(piece: Omit<PieceInstancePiece, 'startPartId'>): PlayoutPieceInstanceModel

insertVirtualPiece(
start: number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@ export class PlayoutPartInstanceModelImpl implements PlayoutPartInstanceModel {
return pieceInstanceModel
}

/** @deprecated HACK
*
*/
insertPlannedPiece(piece: Omit<PieceInstancePiece, 'startPartId'>): PlayoutPieceInstanceModel {
const pieceInstanceId = getPieceInstanceIdForPiece(this.PartInstance._id, piece._id)
if (this.PieceInstancesImpl.has(pieceInstanceId))
Expand Down

0 comments on commit 7a7724f

Please sign in to comment.