mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
chore(repo): remove dead code and useless tests (#3375)
This commit is contained in:
1 parent
7e177a1c90
commit
1cd62eb661
1391 files changed
+783
-120415
No files matched your search
-18
@@ -74,22 +74,6 @@ export function useSoundSettings() {
|
||||
const handleToggleSound = (soundType: SoundType, enabled: boolean) => {
|
||||
SoundCommands.updateSoundSettings({soundType, enabled});
|
||||
};
|
||||
const handleEnableAllSounds = () => {
|
||||
Object.keys(soundTypeLabels).forEach((soundType) => {
|
||||
SoundCommands.updateSoundSettings({
|
||||
soundType: soundType as SoundType,
|
||||
enabled: true,
|
||||
});
|
||||
});
|
||||
};
|
||||
const handleDisableAllSounds = () => {
|
||||
Object.keys(soundTypeLabels).forEach((soundType) => {
|
||||
SoundCommands.updateSoundSettings({
|
||||
soundType: soundType as SoundType,
|
||||
enabled: false,
|
||||
});
|
||||
});
|
||||
};
|
||||
const handlePreviewSound = useCallback((soundType: SoundType) => {
|
||||
SoundCommands.stopAllSounds();
|
||||
SoundCommands.previewSound(soundType);
|
||||
@@ -177,8 +161,6 @@ export function useSoundSettings() {
|
||||
customSounds,
|
||||
handleToggleAllSounds,
|
||||
handleToggleSound,
|
||||
handleEnableAllSounds,
|
||||
handleDisableAllSounds,
|
||||
handlePreviewSound,
|
||||
handleUploadClick,
|
||||
handleCustomSoundDelete,
|
||||
|
||||
Reference in new issue
Block a user