mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
remove boost::filesystem
This commit is contained in:
parent
666c2acffe
commit
f860fb59e8
@ -13,8 +13,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <fstream>
|
||||||
#include <boost/filesystem/fstream.hpp>
|
|
||||||
|
|
||||||
#include <OutputDev.h>
|
#include <OutputDev.h>
|
||||||
#include <GfxState.h>
|
#include <GfxState.h>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* 2012.08.14
|
* 2012.08.14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <cstdio>
|
||||||
|
|
||||||
#include <splash/SplashBitmap.h>
|
#include <splash/SplashBitmap.h>
|
||||||
|
|
||||||
@ -20,8 +20,6 @@
|
|||||||
using std::fixed;
|
using std::fixed;
|
||||||
using std::flush;
|
using std::flush;
|
||||||
using std::function;
|
using std::function;
|
||||||
using boost::filesystem::remove;
|
|
||||||
using boost::filesystem::filesystem_error;
|
|
||||||
|
|
||||||
static void dummy(void *, ErrorCategory, int pos, char *)
|
static void dummy(void *, ErrorCategory, int pos, char *)
|
||||||
{
|
{
|
||||||
@ -260,24 +258,15 @@ void HTMLRenderer::clean_tmp_files()
|
|||||||
|
|
||||||
for(auto iter = tmp_files.begin(); iter != tmp_files.end(); ++iter)
|
for(auto iter = tmp_files.begin(); iter != tmp_files.end(); ++iter)
|
||||||
{
|
{
|
||||||
try
|
const string & fn = *iter;
|
||||||
{
|
remove(fn.c_str());
|
||||||
auto fn = *iter;
|
|
||||||
remove(fn);
|
|
||||||
if(param->debug)
|
|
||||||
cerr << "Remove temporary file: " << fn << endl;
|
|
||||||
}
|
|
||||||
catch(const filesystem_error &)
|
|
||||||
{ }
|
|
||||||
}
|
|
||||||
try
|
|
||||||
{
|
|
||||||
remove(tmp_dir);
|
|
||||||
if(param->debug)
|
if(param->debug)
|
||||||
cerr << "Remove temporary directory: " << tmp_dir << endl;
|
cerr << "Remove temporary file: " << fn << endl;
|
||||||
}
|
}
|
||||||
catch(const filesystem_error &)
|
|
||||||
{ }
|
remove(tmp_dir.c_str());
|
||||||
|
if(param->debug)
|
||||||
|
cerr << "Remove temporary directory: " << tmp_dir << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string HTMLRenderer::HEAD_HTML_FILENAME = "head.html";
|
const std::string HTMLRenderer::HEAD_HTML_FILENAME = "head.html";
|
||||||
|
@ -12,9 +12,6 @@
|
|||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
|
||||||
#include <boost/filesystem.hpp>
|
|
||||||
|
|
||||||
#include <CharCodeToUnicode.h>
|
#include <CharCodeToUnicode.h>
|
||||||
#include <fofi/FoFiTrueType.h>
|
#include <fofi/FoFiTrueType.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user