[mod] clean
code clean
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef __mill_operation_h__
|
||||
#define __mill_operation_h__
|
||||
// #include <math.h>
|
||||
|
||||
#include "EndMill.h"
|
||||
#include "linmath.h"
|
||||
namespace MillSim
|
||||
|
||||
@@ -348,23 +348,7 @@ void Cloud::CloudWriter::createBucket()
|
||||
curl_easy_cleanup(curl);
|
||||
}
|
||||
}
|
||||
//
|
||||
// #if defined(FC_OS_WIN32)
|
||||
//
|
||||
// #include <chrono>
|
||||
// #undef timezone
|
||||
//
|
||||
//
|
||||
// int gettimeofday( time_t* tp, struct timezone* tzp) {
|
||||
// namespace sc = std::chrono;
|
||||
// sc::system_clock::duration d = sc::system_clock::now().time_since_epoch();
|
||||
// sc::seconds s = sc::duration_cast<sc::seconds>(d);
|
||||
// tp->tv_sec = s.count();
|
||||
// tp->tv_usec = sc::duration_cast<sc::microseconds>(d - s).count();
|
||||
//
|
||||
// return 0;
|
||||
//}
|
||||
// #endif
|
||||
|
||||
|
||||
struct Cloud::AmzDatav4* Cloud::ComputeDigestAmzS3v4(char* operation,
|
||||
const char* server,
|
||||
@@ -639,7 +623,6 @@ Cloud::BuildHeaderAmzS3v4(const char* URL, const char* PublicKey, struct Cloud::
|
||||
struct curl_slist* chunk = nullptr;
|
||||
|
||||
// Build the Host: entry
|
||||
// sprintf(header_data,"Host: %s:%s", URL, TCPPort);
|
||||
sprintf(header_data, "Host: %s", URL);
|
||||
chunk = curl_slist_append(chunk, header_data);
|
||||
|
||||
@@ -1314,7 +1297,6 @@ void Cloud::CloudWriter::pushCloud(const char* FileName, const char* data, long
|
||||
|
||||
void Cloud::CloudWriter::writeFiles(void)
|
||||
{
|
||||
|
||||
// use a while loop because it is possible that while
|
||||
// processing the files, new ones can be added
|
||||
std::string tmp = "";
|
||||
@@ -1505,7 +1487,6 @@ bool Cloud::Module::cloudRestore(const char* BucketName)
|
||||
doc->setStatus(Document::Restoring, true);
|
||||
|
||||
try {
|
||||
// Document::Restore(reader);
|
||||
doc->Restore(reader);
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <Gui/PrefWidgets.h>
|
||||
#include <Gui/SpinBox.h>
|
||||
#include <Gui/WaitCursor.h>
|
||||
// #include <Gui/FileDialog.h>
|
||||
|
||||
#include <Mod/Material/App/Exceptions.h>
|
||||
#include <Mod/Material/App/ModelManager.h>
|
||||
@@ -67,7 +66,6 @@ void ArrayDelegate::paint(QPainter* painter,
|
||||
const QStyleOptionViewItem& option,
|
||||
const QModelIndex& index) const
|
||||
{
|
||||
|
||||
if (_type == Materials::MaterialValue::Quantity) {
|
||||
auto* tableModel = dynamic_cast<const AbstractArrayModel*>(index.model());
|
||||
painter->save();
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <Gui/PrefWidgets.h>
|
||||
#include <Gui/SpinBox.h>
|
||||
#include <Gui/WaitCursor.h>
|
||||
// #include <Gui/FileDialog.h>
|
||||
|
||||
#include <Mod/Material/App/Exceptions.h>
|
||||
#include <Mod/Material/App/ModelManager.h>
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
#include <Base/Exception.h>
|
||||
#include <BRepClass3d_SolidClassifier.hxx>
|
||||
#include <ShapeFix_Wire.hxx>
|
||||
// #include <BRepLib_FindSurface.hxx>
|
||||
|
||||
#include "ExtrusionHelper.h"
|
||||
#include "TopoShape.h"
|
||||
|
||||
@@ -86,7 +86,6 @@
|
||||
#include "GeometryObject.h"
|
||||
#include "ShapeExtractor.h"
|
||||
#include "ShapeUtils.h"
|
||||
// #include "Preferences.h"
|
||||
|
||||
#include "DrawBrokenView.h"
|
||||
#include "DrawBrokenViewPy.h"
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "PartTestHelpers.h"
|
||||
#include <Mod/Part/App/TopoShape.h>
|
||||
#include <Mod/Part/App/TopoShapeOpCode.h>
|
||||
// #include <MappedName.h>
|
||||
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
|
||||
Reference in New Issue
Block a user