remove useless

This commit is contained in:
end-4
2024-02-07 21:11:06 +07:00
parent f3e870d3d4
commit 3bc99f1c44
2 changed files with 0 additions and 6 deletions
@@ -140,7 +140,6 @@ const CoverArt = ({ player, ...rest }) => Box({
attribute: {
'updateCover': (self) => {
const player = Mpris.getPlayer();
console.log('cover!');
// Player closed
// Note that cover path still remains, so we're checking title
@@ -356,7 +355,6 @@ export default () => Revealer({
let foundPlayer = false;
Mpris.players.forEach((player, i) => {
if (isRealPlayer(player)) {
console.log('Found player', player);
foundPlayer = true;
box.children.forEach(child => {
child.destroy();
@@ -368,7 +366,6 @@ export default () => Revealer({
});
if (!foundPlayer) {
console.log('No players found');
const children = box.get_children();
for (let i = 0; i < children.length; i++) {
const child = children[i];
@@ -394,7 +391,6 @@ export default () => Revealer({
// let foundPlayer = false;
// Mpris.players.forEach((player, i) => {
// if (isRealPlayer(player)) {
// console.log('Found player', player);
// foundPlayer = true;
// box.children.forEach(child => {
// child.destroy();
@@ -406,7 +402,6 @@ export default () => Revealer({
// });
// if (!foundPlayer) {
// console.log('No players found');
// const children = box.get_children();
// for (let i = 0; i < children.length; i++) {
// const child = children[i];
@@ -10,7 +10,6 @@ import {
CalculationResultButton, CustomCommandButton, DirectoryButton,
DesktopEntryButton, ExecuteCommandButton, SearchButton
} from './searchbuttons.js';
import { enableClickthrough } from '../../lib/roundedcorner.js';
// Add math funcs
const { abs, sin, cos, tan, cot, asin, acos, atan, acot } = Math;