Skip to content

Commit

Permalink
refactor: remove unused files and class
Browse files Browse the repository at this point in the history
Log:
Change-Id: I1810b385472c4aafafb871ecfed9900f90ca352f
  • Loading branch information
deepin-mozart authored and deepin-ci-robot committed Jan 16, 2024
1 parent 4c04ccf commit 54da5b7
Show file tree
Hide file tree
Showing 38 changed files with 27 additions and 490 deletions.
14 changes: 0 additions & 14 deletions src/base/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
project(base)

set(CXX_H
abstractcentral.h
abstractedit.h
abstractmenu.h
abstractmenubar.h
abstractnav.h
abstractaction.h
abstractmainwindow.h
abstractwidget.h
abstractoutputpane.h
abstractconsole.h
abstractdebugger.h
)

set(CXX_CPP
abstractcentral.cpp
abstractedit.cpp
abstractmenu.cpp
abstractmenubar.cpp
abstractnav.cpp
abstractaction.cpp
abstractmainwindow.cpp
abstractwidget.cpp
abstractoutputpane.cpp
abstractconsole.cpp
abstractdebugger.cpp
)

Expand Down
7 changes: 2 additions & 5 deletions src/base/abstractaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class AbstractActionPrivate
AbstractAction::AbstractAction(void *qAction)
: d(new AbstractActionPrivate())
{
if (!qAction) {
qCritical() << "Failed, use QAction(0x0) to AbstractAction";
abort();
}
Q_ASSERT(qAction);

d->action = static_cast<QAction*>(qAction);
d->action->setObjectName("AbstractAction");
Expand All @@ -38,6 +35,6 @@ AbstractAction::~AbstractAction()

void *AbstractAction::qAction()
{
return(void*)(d->action);
return static_cast<void*>(d->action);
}

44 changes: 0 additions & 44 deletions src/base/abstractcentral.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions src/base/abstractcentral.h

This file was deleted.

48 changes: 0 additions & 48 deletions src/base/abstractconsole.cpp

This file was deleted.

18 changes: 0 additions & 18 deletions src/base/abstractconsole.h

This file was deleted.

10 changes: 0 additions & 10 deletions src/base/abstractedit.cpp

This file was deleted.

14 changes: 0 additions & 14 deletions src/base/abstractedit.h

This file was deleted.

49 changes: 0 additions & 49 deletions src/base/abstractmainwindow.cpp

This file was deleted.

27 changes: 0 additions & 27 deletions src/base/abstractmainwindow.h

This file was deleted.

5 changes: 1 addition & 4 deletions src/base/abstractmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ class AbstractMenuPrivate
AbstractMenu::AbstractMenu(void *qMenu)
: d(new AbstractMenuPrivate())
{
if (!qMenu) {
qCritical() << "Failed, use QAction(0x0) to AbstractAction";
abort();
}
Q_ASSERT(qMenu);

d->menu = static_cast<DMenu*>(qMenu);
DMenu::connect(d->menu, &DMenu::destroyed,
Expand Down
45 changes: 0 additions & 45 deletions src/base/abstractmenubar.cpp

This file was deleted.

20 changes: 0 additions & 20 deletions src/base/abstractmenubar.h

This file was deleted.

Loading

0 comments on commit 54da5b7

Please sign in to comment.