Skip to content

Remove unused/dead/commented code.#925

Merged
ahmedcharles merged 2 commits intoMudlet:developmentfrom
ahmedcharles:dead
Apr 19, 2017
Merged

Remove unused/dead/commented code.#925
ahmedcharles merged 2 commits intoMudlet:developmentfrom
ahmedcharles:dead

Conversation

@ahmedcharles
Copy link
Copy Markdown
Contributor

No description provided.

Also do some minor whitespace changes.
pConsole->show();//NOTE: this is important for Apple OSX otherwise the console isnt displayed
}

void mudlet::closeEvent(QCloseEvent *event)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true. Thanks for the catch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be an appropriate place for the new C++11 override keyword yeah?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, a pretty essential function - it is used!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You specify override on the declaration, which it is for this one. I just didn't notice it when I deleted it.

else if (!myOptionState[255])
//only if the option is currently disabled
{
if( //( option == OPT_SUPPRESS_GA ) ||
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting this out/removing it also makes line 822 | 797 (before|after) unreachable...!


signals:

void signal_establish_connection( QString profile_name, int historyVersion );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 I believe int historyVersion is unused throughout the whole application.



private:
bool removeDir( QString dirName, QString originalPath );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC This was a compatibility workaround for Qt4.x and early Qt5.x versions - there is/was a duplicate elsewhere (I think in the Hostclass; which couldn't be used in this class because there may not be a Host instance to run it from...! 😄)

Copy link
Copy Markdown
Member

@SlySven SlySven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the closeEvent seems good - I'll leave it for Vadim to approve!
@vadi2 2017/04/20: Edit: seems history has been rewritten so the issue referred to has been cleared up? 😕

Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 thanks for cleaning this up!

@ahmedcharles ahmedcharles merged commit c7badd8 into Mudlet:development Apr 19, 2017
@ahmedcharles ahmedcharles deleted the dead branch April 19, 2017 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants