1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

fix tests. Deleted not used code

This commit is contained in:
Toxblh 2018-10-21 00:01:19 +01:00
parent be1c439867
commit 35a6ceae07
2 changed files with 7 additions and 24 deletions

View File

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>0.19</string>
<key>CFBundleVersion</key>
<string>109</string>
<string>112</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>

View File

@ -292,34 +292,17 @@ class SupportedTypesHolder {
parameters: [:]
)
},
"nightShift": { _ in
(
item: .nightShift(),
action: .none,
longAction: .none,
parameters: [:]
)
},
"dnd": { _ in
(
item: .dnd(),
action: .none,
longAction: .none,
parameters: [:]
)
},
PomodoroBarItem.name: PomodoroBarItem.decoder,
]
static let sharedInstance = SupportedTypesHolder()
func lookup(by type: String) -> ParametersDecoder {
return supportedTypes[type] ?? { decoder in
(item: try ItemType(from: decoder), action: try ActionType(from: decoder), longAction: try LongActionType(from: decoder), parameters: [:])
}
return supportedTypes[type] ?? { decoder in (
item: try ItemType(from: decoder),
action: try ActionType(from: decoder),
longAction: try LongActionType(from: decoder),
parameters: [:]
)}
}
func register(typename: String, decoder: @escaping ParametersDecoder) {