Skip to content

Commit

Permalink
libshell: Removed unnecessary TextWidget::setRule()
Browse files Browse the repository at this point in the history
Replacing a widget's rule rectangle instance is not very useful.
  • Loading branch information
skyjake committed Feb 1, 2013
1 parent b8b1d86 commit 8839139
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
12 changes: 6 additions & 6 deletions doomsday/libshell/include/de/shell/textwidget.h
Expand Up @@ -84,15 +84,15 @@ class LIBSHELL_PUBLIC TextWidget : public QObject, public Widget
void drawAndShow();

/**
* Defines the placement of the widget on the target canvas.
*
* @param rule Rectangle that the widget occupied.
* Widget takes ownership.
* Returns the rule rectangle that defines the placement of the widget on
* the target canvas.
*/
void setRule(RuleRectangle *rule);

RuleRectangle &rule();

/**
* Returns the rule rectangle that defines the placement of the widget on
* the target canvas.
*/
RuleRectangle const &rule() const;

/**
Expand Down
7 changes: 0 additions & 7 deletions doomsday/libshell/src/textwidget.cpp
Expand Up @@ -85,13 +85,6 @@ void TextWidget::drawAndShow()
}
}

void TextWidget::setRule(RuleRectangle *rule)
{
DENG2_ASSERT(rule != 0);
delete d->rule;
d->rule = rule;
}

RuleRectangle &TextWidget::rule()
{
DENG2_ASSERT(d->rule != 0);
Expand Down

0 comments on commit 8839139

Please sign in to comment.