Skip to content

chore(site): Remove dead code #7436

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

Merged
merged 1 commit into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions site/src/components/AppLink/AppLinkSkeleton.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions site/src/components/GlobalSnackbar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ function dispatchNotificationEvent(
})
}

export const displayMsg = (msg: string, additionalMsg?: string): void => {
dispatchNotificationEvent(
MsgType.Info,
msg,
additionalMsg ? [additionalMsg] : undefined,
)
}

export const displaySuccess = (msg: string, additionalMsg?: string): void => {
dispatchNotificationEvent(
MsgType.Success,
Expand Down
108 changes: 0 additions & 108 deletions site/src/components/RuntimeErrorState/RuntimeErrorReport.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions site/src/components/RuntimeErrorState/createCtas.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions site/src/components/TableCellLink/TableCellLink.tsx

This file was deleted.

6 changes: 1 addition & 5 deletions site/src/components/Tooltips/HelpTooltip/HelpTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ interface HelpTooltipProps {
buttonClassName?: string
}

export const Language = {
ariaLabel: "tooltip",
}

export const HelpTooltipContext = createContext<
{ open: boolean; onClose: () => void } | undefined
>(undefined)
Expand Down Expand Up @@ -108,7 +104,7 @@ export const HelpTooltip: FC<PropsWithChildren<HelpTooltipProps>> = ({
onMouseLeave={() => {
setIsOpen(false)
}}
aria-label={Language.ariaLabel}
aria-label="More info"
>
<Icon className={combineClasses([styles.icon, iconClassName])} />
</button>
Expand Down
30 changes: 0 additions & 30 deletions site/src/components/UsersTable/UsersTable.test.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { makeStyles } from "@material-ui/core/styles"
import {
Template,
TemplateVersion,
Expand Down Expand Up @@ -55,26 +54,3 @@ export const TemplateSummaryPageView: FC<TemplateSummaryPageViewProps> = ({
</Stack>
)
}

export const useStyles = makeStyles((theme) => {
return {
markdownSection: {
background: theme.palette.background.paper,
border: `1px solid ${theme.palette.divider}`,
borderRadius: theme.shape.borderRadius,
},

readmeLabel: {
color: theme.palette.text.secondary,
fontWeight: 600,
padding: theme.spacing(2, 3),
borderBottom: `1px solid ${theme.palette.divider}`,
},

markdownWrapper: {
padding: theme.spacing(0, 3, 5),
maxWidth: 800,
margin: "auto",
},
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import {
TemplateVariableField,
} from "components/TemplateVariableField/TemplateVariableField"

export const getValidationSchema = (): Yup.AnyObjectSchema => Yup.object()

export interface TemplateVariablesForm {
templateVersion: TemplateVersion
templateVariables: TemplateVersionVariable[]
Expand Down
13 changes: 0 additions & 13 deletions site/src/utils/duration.ts

This file was deleted.

4 changes: 0 additions & 4 deletions site/src/xServices/setup/setupXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import * as API from "api/api"
import * as TypesGen from "api/typesGenerated"
import { assign, createMachine } from "xstate"

export const Language = {
createFirstUserError: "Failed to create the user.",
}

export interface SetupContext {
error?: unknown
firstUser?: TypesGen.CreateFirstUserRequest
Expand Down
Loading