Skip to content

Commit 15b06c9

Browse files
authored
remove tmpfile hack again (#446)
1 parent 81dca12 commit 15b06c9

3 files changed

Lines changed: 0 additions & 26 deletions

File tree

conanfile.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ class OpenDocumentCoreConan(ConanFile):
1919
"fPIC": [True, False],
2020
"with_pdf2htmlEX": [True, False],
2121
"with_wvWare": [True, False],
22-
"with_tmpfile_hack": [True, False],
2322
}
2423
default_options = {
2524
"shared": False,
2625
"fPIC": True,
2726
"with_pdf2htmlEX": True,
2827
"with_wvWare": True,
29-
"with_tmpfile_hack": True,
3028
}
3129

3230
exports_sources = ["cli/*", "cmake/*", "resources/dist/*", "src/*", "CMakeLists.txt"]
@@ -37,9 +35,6 @@ def config_options(self):
3735
del self.options.with_pdf2htmlEX
3836
del self.options.with_wvWare
3937

40-
if self.settings.os != "Android":
41-
del self.options.with_tmpfile_hack
42-
4338
def requirements(self):
4439
self.requires("pugixml/1.14")
4540
self.requires("cryptopp/8.9.0")
@@ -55,9 +50,6 @@ def requirements(self):
5550
self.requires("cpp-httplib/0.16.3")
5651
self.requires("argon2/20190702-odr")
5752

58-
if self.options.get_safe("with_tmpfile_hack", False):
59-
self.requires("tmpfile/3.0.6")
60-
6153
def build_requirements(self):
6254
self.test_requires("gtest/1.14.0")
6355

src/odr/global_params.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
#include <poppler/GlobalParams.h>
77
#endif
88

9-
#ifdef ODR_WITH_CUSTOM_TMPFILE
10-
#include <tmpfile.h>
11-
#endif
12-
139
namespace odr {
1410

1511
GlobalParams &GlobalParams::instance() {
@@ -45,10 +41,6 @@ const std::string &GlobalParams::pdf2htmlex_data_path() {
4541
return instance().m_pdf2htmlex_data_path;
4642
}
4743

48-
const std::string &GlobalParams::custom_tmpfile_path() {
49-
return instance().m_custom_tmpfile_path;
50-
}
51-
5244
void GlobalParams::set_odr_core_data_path(const std::string &path) {
5345
instance().m_odr_core_data_path = path;
5446
}
@@ -70,14 +62,6 @@ void GlobalParams::set_pdf2htmlex_data_path(const std::string &path) {
7062
instance().m_pdf2htmlex_data_path = path;
7163
}
7264

73-
void GlobalParams::set_custom_tmpfile_path(const std::string &path) {
74-
#ifdef ODR_WITH_CUSTOM_TMPFILE
75-
set_tmpfile_directory(path.c_str());
76-
#endif
77-
78-
instance().m_custom_tmpfile_path = path;
79-
}
80-
8165
GlobalParams::GlobalParams()
8266
: m_odr_core_data_path{internal::project_info::odr_data_path()},
8367
m_fontconfig_data_path{internal::project_info::fontconfig_data_path()},

src/odr/global_params.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class GlobalParams {
1010
static const std::string &fontconfig_data_path();
1111
static const std::string &poppler_data_path();
1212
static const std::string &pdf2htmlex_data_path();
13-
static const std::string &custom_tmpfile_path();
1413

1514
static void set_odr_core_data_path(const std::string &path);
1615
static void set_fontconfig_data_path(const std::string &path);
@@ -27,7 +26,6 @@ class GlobalParams {
2726
std::string m_fontconfig_data_path;
2827
std::string m_poppler_data_path;
2928
std::string m_pdf2htmlex_data_path;
30-
std::string m_custom_tmpfile_path;
3129
};
3230

3331
} // namespace odr

0 commit comments

Comments
 (0)