Skip to content

Commit ba7ecdd

Browse files
author
Gusted
authored
refactor: remove unused code (pmndrs#1575)
Code isn't being used or don't have a purpose
1 parent 6260e58 commit ba7ecdd

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

demo/src/sandboxes/image-fade/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from 'react'
2-
import { useTransition, animated, config } from '@react-spring/web'
2+
import { useTransition, animated } from '@react-spring/web'
33
import styles from './styles.module.css'
44

55
const slides = [

demo/src/sandboxes/simple-three/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import './styles.css'
33

44
import { Canvas } from '@react-three/fiber'
5-
import { useSpring, animated, Globals } from '@react-spring/three'
5+
import { useSpring, animated } from '@react-spring/three'
66

77
export default function Thing() {
88
const { position } = useSpring({

packages/parallax/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ export const ParallaxLayer = React.memo(
180180
}}
181181
/>
182182
)
183-
return null
184183
}
185184
)
186185
)

targets/web/src/applyAnimatedValues.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ export function applyAnimatedValues(instance: Instance, props: Lookup) {
5252
for (let name in style) {
5353
if (style.hasOwnProperty(name)) {
5454
const value = dangerousStyleValue(name, style[name])
55-
if (name === 'float') name = 'cssFloat'
56-
else if (isCustomPropRE.test(name)) {
55+
if (isCustomPropRE.test(name)) {
5756
instance.style.setProperty(name, value)
5857
} else {
5958
instance.style[name] = value

0 commit comments

Comments
 (0)