Remove useless code

Old code supposed to interract with qBittorrent
This commit is contained in:
Aj - Thomas
2022-05-10 20:59:57 +02:00
parent 034ef3fd8f
commit b92462d056
2 changed files with 0 additions and 15 deletions

View File

@@ -11,7 +11,6 @@ import {
Space,
} from '@mantine/core';
import { useConfig } from '../../tools/state';
import { pingQbittorrent } from '../../tools/api';
import { serviceItem } from '../../tools/types';
import AddItemShelfItem from './AddAppShelfItem';
import { AppShelfItemWrapper } from './AppShelfItemWrapper';
@@ -27,13 +26,6 @@ const AppShelf = (props: any) => {
setConfig(JSON.parse(localConfig));
}
}, []);
if (config.services && config.services.length === 0) {
config.services.forEach((service) => {
if (service.type === 'qBittorrent') {
pingQbittorrent(service);
}
});
}
return (
<SimpleGrid m="xl" cols={5} spacing="xl">

View File

@@ -1,7 +0,0 @@
import { serviceItem } from './types';
export function pingQbittorrent(service: serviceItem): any {
console.log('Getting service.cookie for service: ', service);
if (!service.cookie) service.cookie = 'Test';
else console.log(service.cookie);
}