Skip to content

Commit

Permalink
Remove unnecessary assert and include
Browse files Browse the repository at this point in the history
  • Loading branch information
KleberPF committed May 18, 2024
1 parent 1cd45ee commit be1e67e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/widgets/Notebook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ void Notebook::duplicatePage(QWidget *page)
newContainer->applyFromDescriptor(descriptor);

int newTabPosition = this->indexOf(page) + 1;
assert(newTabPosition != -1);
auto *tab = this->addPageAt(
newContainer, newTabPosition,
item->tab->hasCustomTitle() ? item->tab->getCustomTitle() : "", false);
Expand Down
1 change: 0 additions & 1 deletion src/widgets/splits/SplitContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "common/Common.hpp"
#include "common/QLogging.hpp"
#include "common/WindowDescriptors.hpp"
#include "controllers/completion/TabCompletionModel.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "singletons/Fonts.hpp"
#include "singletons/Theme.hpp"
Expand Down

0 comments on commit be1e67e

Please sign in to comment.