aboutsummaryrefslogtreecommitdiff
path: root/c/pl.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 01:49:36 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 01:49:36 +0200
commit4da9280a307ced3fab399d655b9d11330fc33bc4 (patch)
treebd13c3543ce47c47ffb49b271c51e413b742ba24 /c/pl.cpp
parentb102ae6d6ea778f28d4213b5b886dcb51a9b0fd9 (diff)
downloadEpisodeBrowser-4da9280a307ced3fab399d655b9d11330fc33bc4.tar.gz
Simplify templates.
Diffstat (limited to 'c/pl.cpp')
-rw-r--r--c/pl.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/c/pl.cpp b/c/pl.cpp
index ef8aaf9..46ed717 100644
--- a/c/pl.cpp
+++ b/c/pl.cpp
@@ -91,22 +91,3 @@ int PL_get_tchars(const term_t t, TCHAR** const pTsz, const int iFlags)
return -1;
#endif
}
-
-/* Call nullary Prolog predicate, propagating Prolog exceptions. */
-int Plx(const char* const szMod, const char* const szPred)
-{
- Frame f;
- const term_t t = PL_new_term_refs(0);
- Query q(NULL, PL_predicate(szPred, 0, szMod), t);
- return q.NextSolution();
-}
-
-/* Call nullary Prolog predicate, ignoring Prolog exceptions. */
-int Pl(const char* const szMod, const char* const szPred)
-{
- try {
- return Plx(szMod, szPred);
- } catch (term_t& t) {
- return 0;
- }
-}