aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-24 15:17:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-24 15:17:33 +0200
commit6fd66a9264731bd7ee6d7602675965021d929a4a (patch)
treee94fc63efb823ad2f5c9ef6de6188da389a08d38 /c/episodelistview.cpp
parentff48d644a45dd71098ecb9007a41807fb37d0081 (diff)
downloadEpisodeBrowser-6fd66a9264731bd7ee6d7602675965021d929a4a.tar.gz
Remove Prolog dependency.
The only thing left to reimplement is the tracking of watched episodes in MPC-HC.
Diffstat (limited to 'c/episodelistview.cpp')
-rw-r--r--c/episodelistview.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp
index a76717a..72a8618 100644
--- a/c/episodelistview.cpp
+++ b/c/episodelistview.cpp
@@ -2,7 +2,6 @@
#include <vector>
#include <windows.h>
#include <commctrl.h>
-#include <SWI-Prolog.h>
#include "resource.h"
#include "data.h"
@@ -10,7 +9,6 @@
#include "episodelistview.h"
#include "ext.h"
#include "listview.h"
-#include "pl.h"
#include "util.h"
#include "win.h"
@@ -358,9 +356,6 @@ int CALLBACK EpisodeListView::SortProc(const LPARAM iItem1, const LPARAM iItem2,
void EpisodeListView::Update()
{
- if (!Pl("episode_data","ensure_episode_data"))
- return;
-
/* Save scrolling position. */
int iEpTop = 0;
{
@@ -371,9 +366,8 @@ void EpisodeListView::Update()
/* Save selected episodes. */
int iItemMark;
- static std::vector<int> vEpSel;
+ std::vector<int> vEpSel;
{
- vEpSel.clear();
LVITEM lvi = {LVIF_PARAM, -1};
while (FindNextItem(&lvi, LVNI_SELECTED))
vEpSel.push_back(lvi.lParam);