summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/import.cc6
-rw-r--r--src/linearextrude.cc1
-rw-r--r--src/printutils.cc5
-rw-r--r--src/rotateextrude.cc1
4 files changed, 0 insertions, 13 deletions
diff --git a/src/import.cc b/src/import.cc
index 880823d..230cab2 100644
--- a/src/import.cc
+++ b/src/import.cc
@@ -43,7 +43,6 @@
#include <QRegExp>
#include <QStringList>
#include <sys/types.h>
-#include <sys/stat.h>
#include <fstream>
#include <sstream>
#include <assert.h>
@@ -228,13 +227,8 @@ std::string ImportNode::toString() const
{
std::stringstream stream;
- struct stat st;
- memset(&st, 0, sizeof(struct stat));
- stat(this->filename.c_str(), &st);
-
stream << this->name();
stream << "(file = \"" << this->filename << "\", "
- "cache = \"" << std::hex << (int)st.st_mtime << "." << (int)st.st_size << "\", "
"layer = \"" << this->layername << "\", "
"origin = [" << std::dec << this->origin_x << ", " << this->origin_y << "], "
"scale = " << this->scale << ", "
diff --git a/src/linearextrude.cc b/src/linearextrude.cc
index d1d2841..3d91ac4 100644
--- a/src/linearextrude.cc
+++ b/src/linearextrude.cc
@@ -138,7 +138,6 @@ std::string LinearExtrudeNode::toString() const
if (!this->filename.empty()) { // Ignore deprecated parameters if empty
stream <<
"file = \"" << this->filename << "\", "
- "cache = \"" << QFileInfo(QString::fromStdString(this->filename)) << "\", "
"layer = \"" << this->layername << "\", "
"origin = [" << this->origin_x << ", " << this->origin_y << "], "
"scale = " << this->scale << ", ";
diff --git a/src/printutils.cc b/src/printutils.cc
index ec41765..0749587 100644
--- a/src/printutils.cc
+++ b/src/printutils.cc
@@ -50,8 +50,3 @@ void PRINT_NOCACHE(const std::string &msg)
outputhandler(msg, outputhandler_data);
}
}
-
-std::ostream &operator<<(std::ostream &os, const QFileInfo &fi) {
- os << std::hex << (fi.exists()?fi.lastModified().toTime_t():0) << "." << fi.size();
- return os;
-}
diff --git a/src/rotateextrude.cc b/src/rotateextrude.cc
index ae8793d..e64f6f1 100644
--- a/src/rotateextrude.cc
+++ b/src/rotateextrude.cc
@@ -116,7 +116,6 @@ std::string RotateExtrudeNode::toString() const
if (!this->filename.empty()) { // Ignore deprecated parameters if empty
stream <<
"file = \"" << this->filename << "\", "
- "cache = \"" << QFileInfo(QString::fromStdString(this->filename)) << "\", "
"layer = \"" << this->layername << "\", "
"origin = [" << std::dec << this->origin_x << ", " << this->origin_y << "], "
"scale = " << this->scale << ", ";
contact: Jan Huwald // Impressum