diff options
| author | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-18 20:08:15 +0000 |
|---|---|---|
| committer | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-19 17:22:34 +0000 |
| commit | c419daf4e13efc020401b3bcbbe8b6116bb3cdd7 (patch) | |
| tree | 2826a647cf101a01a566a7623aba481957da3524 /src/io/sys.cpp | |
| parent | Remove all unused makefile.in (diff) | |
| download | inkscape-c419daf4e13efc020401b3bcbbe8b6116bb3cdd7.tar.gz inkscape-c419daf4e13efc020401b3bcbbe8b6116bb3cdd7.zip | |
Drop obsolete wrapper around Glib::file_open_tmp
Diffstat (limited to 'src/io/sys.cpp')
| -rw-r--r-- | src/io/sys.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/io/sys.cpp b/src/io/sys.cpp index 833dee437..2ff17cdc9 100644 --- a/src/io/sys.cpp +++ b/src/io/sys.cpp @@ -18,7 +18,6 @@ #include <fstream> #include <glib.h> #include <glib/gstdio.h> -#include <glibmm/fileutils.h> #include <glibmm/ustring.h> #include <gtk/gtk.h> @@ -107,26 +106,6 @@ int Inkscape::IO::mkdir_utf8name( char const *utf8name ) return retval; } -/* - * Wrapper around Glib::file_open_tmp(). - * Returns a handle to the temp file. - * name_used contains the actual name used (a raw filename, not necessarily utf8). - * - * Returns: - * A file handle (as from open()) to the file opened for reading and writing. - * The file is opened in binary mode on platforms where there is a difference. - * The file handle should be closed with close(). - * - * Note: - * On Windows Vista Glib::file_open_tmp fails with the current version of glibmm - * A special case is implemented for WIN32. This can be removed if the issue is fixed - * in future versions of glibmm - * */ -int Inkscape::IO::file_open_tmp(std::string& name_used, const std::string& prefix) -{ - return Glib::file_open_tmp(name_used, prefix); -} - bool Inkscape::IO::file_test( char const *utf8name, GFileTest test ) { bool exists = false; |
