Commit 84064ac4 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fix warning about unused functions in qstring.cpp

parent ec291cb1
...@@ -11492,8 +11492,6 @@ int QLigature::match(QString & str, unsigned int index) ...@@ -11492,8 +11492,6 @@ int QLigature::match(QString & str, unsigned int index)
return 0; return 0;
} }
#endif
// this function is just used in QString::compose() // this function is just used in QString::compose()
static inline bool format(QChar::Decomposition tag, QString & str, static inline bool format(QChar::Decomposition tag, QString & str,
int index, int len) int index, int len)
...@@ -11525,6 +11523,7 @@ static inline bool format(QChar::Decomposition tag, QString & str, ...@@ -11525,6 +11523,7 @@ static inline bool format(QChar::Decomposition tag, QString & str,
return (!right && !left); return (!right && !left);
} }
} // format() } // format()
#endif
/* /*
QString::compose() and visual() were developed by Gordon Tisher QString::compose() and visual() were developed by Gordon Tisher
...@@ -11602,7 +11601,6 @@ static inline bool is_arabic(unsigned short x) { ...@@ -11602,7 +11601,6 @@ static inline bool is_arabic(unsigned short x) {
((x >= 0xfb50) && (x <= 0xfdff)) || ((x >= 0xfb50) && (x <= 0xfdff)) ||
((x >= 0xfe70) && (x <= 0xfeff))); ((x >= 0xfe70) && (x <= 0xfeff)));
} }
#endif
static inline bool is_neutral(unsigned short dir) { static inline bool is_neutral(unsigned short dir) {
return ((dir == QChar::DirB) || return ((dir == QChar::DirB) ||
...@@ -11611,6 +11609,7 @@ static inline bool is_neutral(unsigned short dir) { ...@@ -11611,6 +11609,7 @@ static inline bool is_neutral(unsigned short dir) {
(dir == QChar::DirON) || (dir == QChar::DirON) ||
(dir == QChar::DirNSM)); (dir == QChar::DirNSM));
} }
#endif
/*! /*!
This function returns the basic directionality of the string (QChar::DirR for This function returns the basic directionality of the string (QChar::DirR for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment