Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Drops unused code. #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/main/java/org/ebml/matroska/MatroskaCluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
package org.ebml.matroska;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ConcurrentLinkedQueue;

import org.ebml.MasterElement;
Expand All @@ -40,7 +37,6 @@ class MatroskaCluster
{
private static final Logger LOG = LoggerFactory.getLogger(MatroskaCluster.class);
private final Queue<MatroskaFileFrame> frames = new ConcurrentLinkedQueue<>();
private final Set<Integer> tracks = new HashSet<>();
private final List<Long> sliencedTracks = new ArrayList<>();

private long clusterTimecode = Long.MAX_VALUE;
Expand Down Expand Up @@ -71,7 +67,6 @@ public void addFrame(final MatroskaFileFrame frame)
}
lastTimecode = frame.getTimecode();
frames.add(frame);
tracks.add(frame.getTrackNo());
}

public boolean isFlushNeeded()
Expand Down Expand Up @@ -134,7 +129,6 @@ public long flush(final DataWriter ioDW)
finally
{
frames.clear();
tracks.clear();
clusterTimecode = Long.MAX_VALUE;
}
}
Expand All @@ -144,11 +138,6 @@ public long getClusterTimecode()
return clusterTimecode;
}

public Collection<Integer> getTracks()
{
return tracks;
}

public void unsilenceTrack(final long trackNumber)
{
sliencedTracks.remove(trackNumber);
Expand Down
Loading