-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: main
Are you sure you want to change the base?
Conversation
DanielSchiavini
commented
Feb 28, 2025
•
edited
Loading
edited
- remove unused code
- simplify useless code
- remove useless comments
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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' |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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?