summaryrefslogtreecommitdiff
path: root/otk/style.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/style.cc')
-rw-r--r--otk/style.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/otk/style.cc b/otk/style.cc
index 3c40e24b..277924d6 100644
--- a/otk/style.cc
+++ b/otk/style.cc
@@ -156,32 +156,6 @@ void Style::load(const Configuration &style) {
}
-void Style::doJustify(const std::string &text, int &start_pos,
- unsigned int max_length,
- unsigned int modifier) const {
- size_t text_len = text.size();
- unsigned int length;
-
- do {
- length = font->measureString(std::string(text, 0, text_len)) + modifier;
- } while (length > max_length && text_len-- > 0);
-
- switch (justify) {
- case RightJustify:
- start_pos += max_length - length;
- break;
-
- case CenterJustify:
- start_pos += (max_length - length) / 2;
- break;
-
- case LeftJustify:
- default:
- break;
- }
-}
-
-
void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask,
const Configuration &style) {
Window root_window = OBDisplay::screenInfo(screen_number)->getRootWindow();