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

refactor: unused code #33869

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from
Draft

refactor: unused code #33869

wants to merge 11 commits into from

Conversation

tassoevan
Copy link
Contributor

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

Copy link
Contributor

dionisio-bot bot commented Nov 2, 2024

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Nov 2, 2024

⚠️ No Changeset found

Latest commit: 0aae0ff

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Nov 2, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33869/
on branch gh-pages at 2024-11-04 03:16 UTC

Copy link

codecov bot commented Nov 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.42%. Comparing base (3db5690) to head (0aae0ff).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33869   +/-   ##
========================================
  Coverage    75.42%   75.42%           
========================================
  Files          493      493           
  Lines        21499    21494    -5     
  Branches      5337     5336    -1     
========================================
- Hits         16215    16212    -3     
+ Misses        4644     4642    -2     
  Partials       640      640           
Flag Coverage Δ
unit 75.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@tassoevan tassoevan force-pushed the refactor/unused-code branch 2 times, most recently from 15c3b8d to 9bda431 Compare November 2, 2024 04:27
@tassoevan tassoevan force-pushed the refactor/unused-code branch from 9bda431 to ed00c95 Compare November 4, 2024 03:11
@@ -1,204 +0,0 @@
import { serverFetch as fetch } from '@rocket.chat/server-fetch';
Copy link
Contributor

Choose a reason for hiding this comment

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

This file was used to override Meteor's HTTP.call (#25022), but the override was removed on #28825, by mistake.
We should either reapply this override, or replace any remaining calls to HTTP with fetch.

@@ -1,21 +0,0 @@
import type { IMessage, IReport, RocketChatRecordDeleted } from '@rocket.chat/core-typings';
Copy link
Contributor

Choose a reason for hiding this comment

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

Model was replaced by a new one in #28962, it's alright to remove this one now.

@@ -1,21 +0,0 @@
import { settings } from '../../../../../app/settings/server';
Copy link
Contributor

Choose a reason for hiding this comment

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

File introduced by #23392, never got imported on the first place.
However, it was forgotten by mistake and is supposed to be imported instead of removed.

@@ -9,17 +9,6 @@ import { useRoom, useRoomSubscription } from '../../contexts/RoomContext';
import { useRoomToolbox } from '../../contexts/RoomToolboxContext';
import NotificationPreferences from './NotificationPreferences';

export type NotificationFormValues = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Stopped being used on #29113, ok to remove.

@@ -1,52 +0,0 @@
import type { ILivechatAgent, ILivechatDepartment } from '@rocket.chat/core-typings';
Copy link
Contributor

Choose a reason for hiding this comment

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

Usage removed by #29594, ok to remove.

@@ -112,16 +112,7 @@ export type PartialThis = {
readonly logger: Logger;
};

export type UserInfo = IUser & {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hadn't been used since before this file was created, ok to remove.

@@ -85,17 +85,6 @@ export async function getWorkspaceAccessTokenOrThrow(forceNew = false, scope = '
return token;
}

export const generateWorkspaceBearerHttpHeaderOrThrow = async (
Copy link
Contributor

Choose a reason for hiding this comment

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

Made obsolete by #30401 on the same day it was introduced by #30178

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.

2 participants