Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jan 25, 2019
1 parent 123865f commit a28d230
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Expand Up @@ -102,15 +102,6 @@ void CellmlAnnotationViewWidget::retranslateUi()

//==============================================================================

bool CellmlAnnotationViewWidget::contains(const QString &pFileName) const
{
// Return whether we know about the given file

return mEditingWidgets.contains(pFileName);
}

//==============================================================================

void CellmlAnnotationViewWidget::initialize(const QString &pFileName)
{
// Retrieve the editing widget associated with the given file, if any
Expand Down Expand Up @@ -209,7 +200,7 @@ void CellmlAnnotationViewWidget::fileReloaded(const QString &pFileName)
{
// The given file has been reloaded, so reload it, should it be managed

if (contains(pFileName)) {
if (mEditingWidgets.contains(pFileName)) {
finalize(pFileName);
initialize(pFileName);
}
Expand Down
Expand Up @@ -57,8 +57,6 @@ class CellmlAnnotationViewWidget : public Core::ViewWidget

void retranslateUi() override;

bool contains(const QString &pFileName) const;

void initialize(const QString &pFileName);
void finalize(const QString &pFileName);

Expand Down

0 comments on commit a28d230

Please sign in to comment.