Get rid of wxGraphicsPenInfo::CreateFromPen()

This is a helper method used only in wxWidgets itself and only once, so
just inline it at the point of use to avoid exporting an unnecessary
function in the public API.
This commit is contained in:
Vadim Zeitlin
2017-09-10 01:53:02 +02:00
parent 76fd05b147
commit 8bad0e494f
2 changed files with 19 additions and 24 deletions

View File

@@ -157,10 +157,6 @@ public:
wxDouble GetWidth() const { return m_width; }
// This is a helper used by wxWidgets itself, it doesn't make much sense to
// use it outside of the library.
static wxGraphicsPenInfo CreateFromPen(const wxPen& pen);
private:
wxDouble m_width;
};
@@ -512,8 +508,7 @@ public:
wxGraphicsPath CreatePath() const;
wxGraphicsPen CreatePen(const wxPen& pen) const
{ return DoCreatePen(wxGraphicsPenInfo::CreateFromPen(pen)); }
wxGraphicsPen CreatePen(const wxPen& pen) const;
wxGraphicsPen CreatePen(const wxGraphicsPenInfo& info) const
{ return DoCreatePen(info); }