Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Remove dead code

Chocobozzza0c72a5ff5de
diff --git a/packages/ffmpeg/src/ffmpeg-vod.ts b/packages/ffmpeg/src/ffmpeg-vod.ts
index 0c7cbc340d..c1353c3a60 100644
--- a/packages/ffmpeg/src/ffmpeg-vod.ts
+++ b/packages/ffmpeg/src/ffmpeg-vod.ts
@@ -71,8 +71,6 @@ export type TranscodeVODOptions =
export class FFmpegVOD {
private readonly commandWrapper: FFmpegCommandWrapper
- private ended = false
-
constructor (options: FFmpegCommandWrapperOptions) {
this.commandWrapper = new FFmpegCommandWrapper(options)
}
@@ -100,12 +98,6 @@ export class FFmpegVOD {
await this.commandWrapper.runCommand()
await this.fixHLSPlaylistIfNeeded(options)
-
- this.ended = true
- }
-
- isEnded () {
- return this.ended
}
private async buildVODCommand (
diff --git a/server/core/lib/storyboard.ts b/server/core/lib/storyboard.ts
index 99e2d733a5..fe132af0e2 100644
--- a/server/core/lib/storyboard.ts
+++ b/server/core/lib/storyboard.ts
@@ -34,9 +34,6 @@ export function buildTotalSprites (video: MVideo) {
const spriteDuration = Math.ceil(video.duration / maxSprites)
const totalSprites = Math.ceil(video.duration / spriteDuration)
- // We can generate a single line so we don't need a prime number
- if (totalSprites <= STORYBOARD.SPRITES_MAX_EDGE_COUNT) return { spriteDuration, totalSprites }
-
return { spriteDuration, totalSprites }
}