Skip to content

Commit 697d30b

Browse files
committed
remove methods clearCodes() + clearSmilies() from BBCodeParser
Both methods are never used in the current code, so there's no point in keeping them.
1 parent 18c075b commit 697d30b

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

code/bbcode/BBCodeParser.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,3 @@ void BBCodeParser::addPostProcessor(TextProcessor* postProc)
114114
m_PostProcs.push_back(postProc);
115115
}
116116
#endif
117-
118-
void BBCodeParser::clearCodes()
119-
{
120-
m_Codes.clear();
121-
}
122-
123-
#ifndef NO_SMILIES_IN_PARSER
124-
void BBCodeParser::clearSmilies()
125-
{
126-
m_Smilies.clear();
127-
}
128-
#endif

code/bbcode/BBCodeParser.hpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -152,27 +152,6 @@ class BBCodeParser
152152
#endif
153153

154154

155-
/** \brief Clears all added BB codes.
156-
*
157-
* \remarks
158-
* Clearing codes right before calling parse() without any addCode()
159-
* calls in between will result in no BB codes being parsed. However,
160-
* smilies might still get parsed, if there are any.
161-
*/
162-
void clearCodes();
163-
164-
165-
#ifndef NO_SMILIES_IN_PARSER
166-
/** \brief Clears all added smilies.
167-
*
168-
* \remarks
169-
* Clearing smilies right before calling parse() without any addSmile()
170-
* calls in between will result in no smilies being parsed. However,
171-
* BB codes might still get parsed, if they are present.
172-
*/
173-
void clearSmilies();
174-
#endif
175-
176155
#ifndef NO_POSTPROCESSORS_IN_PARSER
177156
/** Clears all added postprocessors. */
178157
inline void clearPostProcessors()

0 commit comments

Comments
 (0)