mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Remove unused commented-out code
This commit is contained in:
parent
06f7bdb353
commit
2934d726f2
1 changed files with 3 additions and 5 deletions
|
@ -1216,9 +1216,7 @@ public class ResponseHelper {
|
|||
try (Session s = DatabaseSessionFactory.createSession()) {
|
||||
CriteriaQuery<me.kavin.piped.utils.obj.db.Playlist> plQuery =
|
||||
s.getCriteriaBuilder().createQuery(me.kavin.piped.utils.obj.db.Playlist.class);
|
||||
Root<me.kavin.piped.utils.obj.db.Playlist> plRoot = plQuery.from(me.kavin.piped.utils.obj.db.Playlist.class);
|
||||
//plRoot.fetch("videos", JoinType.INNER);
|
||||
plQuery.select(plRoot);
|
||||
plQuery.select(plQuery.from(me.kavin.piped.utils.obj.db.Playlist.class));
|
||||
List<me.kavin.piped.utils.obj.db.Playlist> playlists = s.createQuery(plQuery).getResultList();
|
||||
|
||||
CriteriaQuery<PlaylistVideo> pvQuery = s.getCriteriaBuilder().createQuery(PlaylistVideo.class);
|
||||
|
@ -1232,8 +1230,8 @@ public class ResponseHelper {
|
|||
PlaylistVideo pv = pvIter.next();
|
||||
|
||||
for (me.kavin.piped.utils.obj.db.Playlist pl : playlists) {
|
||||
for (PlaylistVideo plpv : pl.getVideos()) {
|
||||
if (plpv.getId().equals(pv.getId())) {
|
||||
for (PlaylistVideo v : pl.getVideos()) {
|
||||
if (v.getId().equals(pv.getId())) {
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue