Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused and useless code #717

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

DanielSchiavini
Copy link
Contributor

@DanielSchiavini DanielSchiavini commented Feb 28, 2025

  • remove unused code
  • simplify useless code
  • remove useless comments

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:54am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:54am

@@ -1,6 +1,5 @@
import type { UseQueryOptions } from '@tanstack/react-query'
import { QueryKey, useQuery } from '@tanstack/react-query'
import { queryClient } from '@ui-kit/lib/api/query-client'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: prob will need it back for a createFetchQuery that has to be used in slices which can't use useQueryClient()

@@ -115,4 +115,3 @@ export const logQuery = (key: LogKey, ...args: unknown[]) => log(key, LogStatus.
export const logMutation = (key: LogKey, ...args: unknown[]) => log(key, LogStatus.MUTATION, ...args)
export const logError = (key: LogKey, ...args: unknown[]) => log(key, LogStatus.ERROR, ...args)
export const logSuccess = (key: LogKey, ...args: unknown[]) => log(key, LogStatus.SUCCESS, ...args)
export const logInfo = (key: LogKey, ...args: unknown[]) => log(key, LogStatus.INFO, ...args)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't really have to go but oh well, can always re-add

@@ -43,16 +43,6 @@ export type Snapshot = {
discountLoan: number
}

export type PoolPrice = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't delete these as they have to be exported for package users (like Curve Monitor). Prob best to exclude this package from the automated tools?

@@ -10,7 +10,7 @@ import styled, { css } from 'styled-components'
import { isInProgress, taskStepStatusStyles } from './helpers'
import Button from 'ui/src/Button'
import Spinner from 'ui/src/Spinner/Spinner'
import StepModal from 'ui/src/Stepper/StepModal'
import { StepModal } from 'ui/src/Stepper'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, how did your tool not see import * as React from 'react' which can be removed as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants