Code cleanup

This commit is contained in:
Enrico Turri
2018-09-19 08:59:11 +02:00
parent 9daae9413a
commit e79b0a2f25
4 changed files with 4 additions and 49 deletions

View File

@@ -46,10 +46,8 @@
#include "Tab.hpp"
#include "TabIface.hpp"
//##############################################################################################################################################################
#include "GUI_Preview.hpp"
#include "GUI_PreviewIface.hpp"
//##############################################################################################################################################################
#include "AboutDialog.hpp"
#include "AppConfig.hpp"
#include "ConfigSnapshotDialog.hpp"
@@ -152,9 +150,7 @@ wxStaticBitmap *g_manifold_warning_icon = nullptr;
bool g_show_print_info = false;
bool g_show_manifold_warning_icon = false;
//##############################################################################################################################################################
PreviewIface* g_preview = nullptr; // <<< FIXME ENRICO -> add code to delete the pointer when the application closes
//##############################################################################################################################################################
PreviewIface* g_preview = nullptr;
static void init_label_colours()
{
@@ -673,7 +669,6 @@ TabIface* get_preset_tab_iface(char *name)
return new TabIface(nullptr);
}
//##############################################################################################################################################################
PreviewIface* create_preview_iface(wxNotebook* parent, DynamicPrintConfig* config, Print* print, GCodePreviewData* gcode_preview_data)
{
if (g_preview == nullptr)
@@ -684,7 +679,6 @@ PreviewIface* create_preview_iface(wxNotebook* parent, DynamicPrintConfig* confi
return g_preview;
}
//##############################################################################################################################################################
// opt_index = 0, by the reason of zero-index in ConfigOptionVector by default (in case only one element)
void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt_key, const boost::any& value, int opt_index /*= 0*/)