summaryrefslogtreecommitdiffhomepage
path: root/opentrack/work.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-20 08:25:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-20 08:25:07 +0200
commitc4c115aa8d7fea128cecdcf9d08ae1935907c1ec (patch)
tree52d7b5d4275ba6f86e41461f0b74e1032a55a834 /opentrack/work.hpp
parentfeb12bd0eecc9f09ef7a1ab7fc60858ea519edbe (diff)
declutter stuff outta UI class
Diffstat (limited to 'opentrack/work.hpp')
-rw-r--r--opentrack/work.hpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/opentrack/work.hpp b/opentrack/work.hpp
index 3e51b480..bd69f7ba 100644
--- a/opentrack/work.hpp
+++ b/opentrack/work.hpp
@@ -9,32 +9,6 @@
#include <QFrame>
#include <memory>
-struct Modules {
- Modules() :
- module_list(dylib::enum_libraries()),
- filter_modules(filter(dylib::Filter)),
- tracker_modules(filter(dylib::Tracker)),
- protocol_modules(filter(dylib::Protocol))
- {}
- QList<ptr<dylib>>& filters() { return filter_modules; }
- QList<ptr<dylib>>& trackers() { return tracker_modules; }
- QList<ptr<dylib>>& protocols() { return protocol_modules; }
-private:
- QList<ptr<dylib>> module_list;
- QList<ptr<dylib>> filter_modules;
- QList<ptr<dylib>> tracker_modules;
- QList<ptr<dylib>> protocol_modules;
-
- QList<ptr<dylib>> filter(dylib::Type t)
- {
- QList<ptr<dylib>> ret;
- for (auto x : module_list)
- if (x->type == t)
- ret.push_back(x);
- return ret;
- }
-};
-
struct Work
{
main_settings& s;