Skip to content

Commit

Permalink
Remove backported code supporting wx-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Jan 30, 2024
1 parent 9feb39a commit 6cdd320
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 437 deletions.
9 changes: 1 addition & 8 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ WX_LIBS = @WX_LIBS@

bin_PROGRAMS = poedit

WX_BACKPORT_SRC = wx_backports/wx_gtk_activityindicator.cpp \
wx_backports/activityindicator.h \
wx_backports/gtk_activityindicator.h \
wx_backports/nativewin.h \
wx_backports/wx_gtk_nativewin.cpp

if HAVE_CPPREST
ACCOUNTS_SUPPORT_SRC = \
http_client.h http_client.cpp http_client_casablanca.cpp \
Expand Down Expand Up @@ -83,8 +77,7 @@ poedit_SOURCES = \
version.h \
welcomescreen.cpp welcomescreen.h \
pugixml.h \
$(ACCOUNTS_SUPPORT_SRC) \
$(WX_BACKPORT_SRC)
$(ACCOUNTS_SUPPORT_SRC)
nodist_poedit_SOURCES = compiled_xrc.cpp

poedit_LDADD = $(WX_LIBS) $(LUCENE_LIBS) $(CLD2_LIBS) $(PUGIXML_LIBS) $(ACCOUNTS_SUPPORT_LIBS) \
Expand Down
7 changes: 1 addition & 6 deletions src/customcontrols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "hidpi.h"
#include "utility.h"

#include <wx/activityindicator.h>
#include <wx/app.h>
#include <wx/artprov.h>
#include <wx/clipbrd.h>
Expand All @@ -47,12 +48,6 @@
#include <wx/generic/private/markuptext.h>
#endif

#if wxCHECK_VERSION(3,1,0)
#include <wx/activityindicator.h>
#else
#include "wx_backports/activityindicator.h"
#endif

#include <unicode/brkiter.h>
#ifdef __WXGTK__
#include <gtk/gtk.h>
Expand Down
7 changes: 1 addition & 6 deletions src/propertiesdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,10 @@
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/menu.h>
#include <wx/nativewin.h>
#include <wx/notebook.h>
#include <wx/windowptr.h>

#include <wx/nativewin.h>
#if !wxCHECK_VERSION(3,1,0)
#include "wx_backports/nativewin.h"
#endif


#include <algorithm>
#include <functional>
#include <memory>
Expand Down
56 changes: 0 additions & 56 deletions src/wx_backports/activityindicator.h

This file was deleted.

60 changes: 0 additions & 60 deletions src/wx_backports/gtk_activityindicator.h

This file was deleted.

64 changes: 0 additions & 64 deletions src/wx_backports/nativewin.h

This file was deleted.

Loading

0 comments on commit 6cdd320

Please sign in to comment.