Skip to content

Commit 3743210

Browse files
Antoine LlorcaAntoine Llorca
authored andcommitted
fix(utils): remove unused function
1 parent caa1495 commit 3743210

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

lib/LayeredImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export const LayeredImage: React.FC<ILayeredImageProps> = ({
4949
className,
5050
style,
5151
}) => {
52-
const [size, setSize] = useState<Size>({ width: 0, height: 0 })
5352
const interactionRef = useRef<Interaction>(Interaction.None)
53+
const [size, setSize] = useState<Size>({ width: 0, height: 0 })
5454
const [loaded, setLoaded] = useState<number>(0)
5555
const [, setError] = useState<number>(0)
5656

lib/utils.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,3 @@ export const clamp = (value: number, min: number, max: number) => {
2121
*/
2222
// eslint-disable-next-line @typescript-eslint/ban-types
2323
export const isFunction = (value: unknown): value is Function => typeof value === "function"
24-
25-
/**
26-
* Detect whether the current browser is a desktop version of Safari.
27-
*/
28-
export const isSafariDesktop = () => {
29-
const { userAgent, vendor } = navigator
30-
31-
return /Safari/i.test(userAgent) && /Apple Computer/.test(vendor) && !/Mobi|Android/i.test(userAgent)
32-
}

0 commit comments

Comments
 (0)