From add8b01e4cafe2dd40425d96046003919a1442f7 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 6 Nov 2023 15:00:52 +1300 Subject: [PATCH] Remove unused code from TimerPage --- TimerPage.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/TimerPage.tsx b/TimerPage.tsx index a9629a6..8de0c69 100644 --- a/TimerPage.tsx +++ b/TimerPage.tsx @@ -1,6 +1,6 @@ import { useFocusEffect } from "@react-navigation/native"; import React, { useCallback, useMemo, useState } from "react"; -import { Dimensions, NativeModules, View } from "react-native"; +import { NativeModules, View } from "react-native"; import { FAB, Text, useTheme } from "react-native-paper"; import { ProgressCircle } from "react-native-svg-charts"; import AppFab from "./AppFab"; @@ -40,10 +40,6 @@ export default function TimerPage() { return (Number(minutes) * 60 + Number(seconds)) / 210; }, [minutes, seconds]); - const left = useMemo(() => { - return Dimensions.get("screen").width * 0.5 - 60; - }, []); - const backgroundColor = useMemo(() => { if (colors.primary.match(/rgba/)) return darkenRgba(colors.primary, 0.6); return colors.primary + "80";