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()) {
|
try (Session s = DatabaseSessionFactory.createSession()) {
|
||||||
CriteriaQuery<me.kavin.piped.utils.obj.db.Playlist> plQuery =
|
CriteriaQuery<me.kavin.piped.utils.obj.db.Playlist> plQuery =
|
||||||
s.getCriteriaBuilder().createQuery(me.kavin.piped.utils.obj.db.Playlist.class);
|
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);
|
plQuery.select(plQuery.from(me.kavin.piped.utils.obj.db.Playlist.class));
|
||||||
//plRoot.fetch("videos", JoinType.INNER);
|
|
||||||
plQuery.select(plRoot);
|
|
||||||
List<me.kavin.piped.utils.obj.db.Playlist> playlists = s.createQuery(plQuery).getResultList();
|
List<me.kavin.piped.utils.obj.db.Playlist> playlists = s.createQuery(plQuery).getResultList();
|
||||||
|
|
||||||
CriteriaQuery<PlaylistVideo> pvQuery = s.getCriteriaBuilder().createQuery(PlaylistVideo.class);
|
CriteriaQuery<PlaylistVideo> pvQuery = s.getCriteriaBuilder().createQuery(PlaylistVideo.class);
|
||||||
|
@ -1232,8 +1230,8 @@ public class ResponseHelper {
|
||||||
PlaylistVideo pv = pvIter.next();
|
PlaylistVideo pv = pvIter.next();
|
||||||
|
|
||||||
for (me.kavin.piped.utils.obj.db.Playlist pl : playlists) {
|
for (me.kavin.piped.utils.obj.db.Playlist pl : playlists) {
|
||||||
for (PlaylistVideo plpv : pl.getVideos()) {
|
for (PlaylistVideo v : pl.getVideos()) {
|
||||||
if (plpv.getId().equals(pv.getId())) {
|
if (v.getId().equals(pv.getId())) {
|
||||||
continue outer;
|
continue outer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue