diff options
author | Neil <nyamatongwe@gmail.com> | 2014-03-23 09:50:03 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-03-23 09:50:03 +1100 |
commit | fb2a241ed06f68b17de824937b197208695b3c65 (patch) | |
tree | e638be241dc8bb9f85adc49e3f74cbdb16e8fef7 | |
parent | fb1302bd2c3c477e5177359e0c0aa882b5a3751a (diff) | |
download | scintilla-mirror-fb2a241ed06f68b17de824937b197208695b3c65.tar.gz |
Remove method no longer needed.
-rw-r--r-- | src/XPM.cxx | 6 | ||||
-rw-r--r-- | src/XPM.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index 4191e1e92..e1d91846d 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -61,11 +61,9 @@ XPM::XPM(const char *const *linesForm) { } XPM::~XPM() { - Clear(); } void XPM::Init(const char *textForm) { - Clear(); // Test done is two parts to avoid possibility of overstepping the memory // if memcmp implemented strangely. Must be 4 bytes at least at destination. if ((0 == memcmp(textForm, "/* X", 4)) && (0 == memcmp(textForm, "/* XPM */", 9))) { @@ -81,7 +79,6 @@ void XPM::Init(const char *textForm) { } void XPM::Init(const char *const *linesForm) { - Clear(); height = 1; width = 1; nColours = 1; @@ -125,9 +122,6 @@ void XPM::Init(const char *const *linesForm) { } } -void XPM::Clear() { -} - void XPM::Draw(Surface *surface, PRectangle &rc) { if (pixels.empty()) { return; @@ -30,7 +30,6 @@ public: ~XPM(); void Init(const char *textForm); void Init(const char *const *linesForm); - void Clear(); /// Decompose image into runs and use FillRectangle for each run void Draw(Surface *surface, PRectangle &rc); int GetHeight() const { return height; } |