Skip to content

Commit

Permalink
Clean unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouh committed Feb 5, 2025
1 parent 5425962 commit 6dfe0f7
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions newIDE/app/src/GameDashboard/GameDashboardCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ import FileWithLines from '../UI/CustomSvgIcons/FileWithLines';
import TextButton from '../UI/TextButton';
import { MarkdownText } from '../UI/MarkdownText';
import { getRelativeOrAbsoluteDisplayDate } from '../Utils/DateDisplay';
import { formatISO, subDays } from 'date-fns';
import {
type GameMetrics,
getGameMetricsFrom,
} from '../Utils/GDevelopServices/Analytics';
import ImageThumbnail from '../ResourcesList/ResourceThumbnail/ImageThumbnail';

// It's important to use remote and not electron for folder actions,
Expand Down Expand Up @@ -221,14 +216,6 @@ const GameDashboardCard = ({
]
: null;

const [gameRollingMetrics, setGameMetrics] = React.useState<?(GameMetrics[])>(
null
);

const [gameRollingMetricsError, setGameMetricsError] = React.useState<?Error>(
null
);

const authenticatedUser = React.useContext(AuthenticatedUserContext);
const {
getAuthorizationHeader,
Expand Down Expand Up @@ -267,14 +254,6 @@ const GameDashboardCard = ({
)
: null;

const last7DaysIsoDate = formatISO(subDays(new Date(), 7), {
representation: 'date',
});

const [isGameMetricsLoading, setIsGameMetricsLoading] = React.useState(false);

const hasNoSession = gameRollingMetrics && gameRollingMetrics.length === 0;

const renderPublicInfo = () => {
const DiscoverabilityIcon =
game && game.discoverable && gameUrl ? Visibility : VisibilityOff;
Expand Down

0 comments on commit 6dfe0f7

Please sign in to comment.