summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-io.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-10-28 11:16:46 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-10-29 09:21:30 +0000
commite3fc12917d5bcc872cfa010ec4d6a52f553cd78e (patch)
tree9f856a153375966dc58da71a2f2f4b46734ce02b /src/xml/repr-io.cpp
parentMove contents of document-private.h to document.h. (diff)
downloadinkscape-e3fc12917d5bcc872cfa010ec4d6a52f553cd78e.tar.gz
inkscape-e3fc12917d5bcc872cfa010ec4d6a52f553cd78e.zip
cleanup: remove most of uristream.cpp
Replace UriInputStream -> FileInputStream Replace UriOutputStream -> FileOutputStream Remove UriReader Remove UriWriter UriReader, UriWriter, and the acutal URI-based API of UriInputStream and UriOutputStream was all unused/dead code.
Diffstat (limited to 'src/xml/repr-io.cpp')
-rw-r--r--src/xml/repr-io.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp
index 877083b81..35a2e3793 100644
--- a/src/xml/repr-io.cpp
+++ b/src/xml/repr-io.cpp
@@ -75,7 +75,6 @@ public:
LoadEntities(false),
cachedData(),
cachedPos(0),
- dummy("x"),
instr(nullptr),
gzin(nullptr)
{
@@ -112,8 +111,7 @@ private:
bool LoadEntities; // Checks for SYSTEM Entities (requires cached data)
std::string cachedData;
unsigned int cachedPos;
- Inkscape::URI dummy;
- Inkscape::IO::UriInputStream* instr;
+ Inkscape::IO::FileInputStream* instr;
Inkscape::IO::GzipInputStream* gzin;
};
@@ -136,7 +134,7 @@ int XmlSource::setFile(char const *filename, bool load_entities=false)
fclose(fp);
fp = nullptr;
fp = Inkscape::IO::fopen_utf8name(filename, "r");
- instr = new Inkscape::IO::UriInputStream(fp, dummy);
+ instr = new Inkscape::IO::FileInputStream(fp);
gzin = new Inkscape::IO::GzipInputStream(*instr);
memset( firstFew, 0, sizeof(firstFew) );
@@ -669,8 +667,7 @@ void sp_repr_save_stream(Document *doc, FILE *fp, gchar const *default_ns, bool
gchar const *const old_href_abs_base,
gchar const *const new_href_abs_base)
{
- Inkscape::URI dummy("x");
- Inkscape::IO::UriOutputStream bout(fp, dummy);
+ Inkscape::IO::FileOutputStream bout(fp);
Inkscape::IO::GzipOutputStream *gout = compress ? new Inkscape::IO::GzipOutputStream(bout) : nullptr;
Inkscape::IO::OutputStreamWriter *out = compress ? new Inkscape::IO::OutputStreamWriter( *gout ) : new Inkscape::IO::OutputStreamWriter( bout );