Removed unused local vars. Slightly refactored code.
This commit is contained in:
@@ -29,8 +29,6 @@ NotebookTab::NotebookTab(Notebook *notebook)
|
||||
, notebook_(notebook)
|
||||
, menu_(this)
|
||||
{
|
||||
auto app = getApp();
|
||||
|
||||
this->setAcceptDrops(true);
|
||||
|
||||
this->positionChangedAnimation_.setEasingCurve(
|
||||
@@ -527,8 +525,6 @@ void NotebookTab::dragEnterEvent(QDragEnterEvent *event)
|
||||
|
||||
void NotebookTab::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
auto app = getApp();
|
||||
|
||||
if (getSettings()->showTabCloseButton &&
|
||||
this->notebook_->getAllowUserTabManagement()) //
|
||||
{
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace chatterino {
|
||||
AdvancedPage::AdvancedPage()
|
||||
: SettingsPage("Advanced", ":/settings/advanced.svg")
|
||||
{
|
||||
auto app = getApp();
|
||||
LayoutCreator<AdvancedPage> layoutCreator(this);
|
||||
|
||||
auto tabs = layoutCreator.emplace<QTabWidget>();
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace chatterino {
|
||||
ExternalToolsPage::ExternalToolsPage()
|
||||
: SettingsPage("External tools", ":/settings/externaltools.svg")
|
||||
{
|
||||
auto app = getApp();
|
||||
|
||||
LayoutCreator<ExternalToolsPage> layoutCreator(this);
|
||||
auto layout = layoutCreator.setLayoutType<QVBoxLayout>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user