Skip to content

Commit

Permalink
[cleanup] Remove empty function wxcSettings::ShowNagDialogIfNeeded()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Sep 20, 2024
1 parent c320d92 commit db0194e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions wxcrafter/src/wxc_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ JSONElement wxcSettings::GetCustomControlsAsJSON(const wxArrayString& controls)
return arr;
}

void wxcSettings::ShowNagDialogIfNeeded() {}

// ----------------------------------------------------------------------
// CustomControlTemplate
// ----------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion wxcrafter/src/wxc_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class wxcSettings
}
}

void ShowNagDialogIfNeeded();
void SetInitCompleted(bool initCompleted) { this->m_initCompleted = initCompleted; }
bool IsInitCompleted() const { return m_initCompleted; }

Expand Down
8 changes: 0 additions & 8 deletions wxcrafter/src/wxguicraft_main_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3053,11 +3053,6 @@ void GUICraftMainPanel::OnAuiPaneInfoChanged(wxPropertyGridEvent& event)

void GUICraftMainPanel::DoGenerateCode(bool silent)
{
// Show the nag dialog if needed
if(!silent) {
wxcSettings::Get().ShowNagDialogIfNeeded();
}

if(!wxcProjectMetadata::Get().GetGenerateCPPCode() && !wxcProjectMetadata::Get().GetGenerateXRC()) {
if(silent) {
return;
Expand Down Expand Up @@ -3256,9 +3251,6 @@ void GUICraftMainPanel::DoGenerateCode(bool silent)

void GUICraftMainPanel::BatchGenerate(const wxArrayString& files)
{
// SHow the nag dialog if needed
wxcSettings::Get().ShowNagDialogIfNeeded();

wxArrayString projectsGenerated;
wxArrayString wxcpFiles;

Expand Down

0 comments on commit db0194e

Please sign in to comment.