remove unused files

This commit is contained in:
Ramón Souza 2024-03-12 13:20:03 -03:00
parent 6b13f4fe30
commit c24b400748
6 changed files with 0 additions and 28 deletions

View File

@ -1 +0,0 @@
import './methods';

View File

@ -1,6 +0,0 @@
import { Meteor } from 'meteor/meteor';
import publishCursorUpdate from './methods/publishCursorUpdate';
Meteor.methods({
publishCursorUpdate,
});

View File

@ -1,10 +0,0 @@
import RedisPubSub from '/imports/startup/server/redis';
import { Meteor } from 'meteor/meteor';
export default function publishCursorUpdate(meetingId, requesterUserId, payload) {
const REDIS_CONFIG = Meteor.settings.private.redis;
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
const EVENT_NAME = 'SendCursorPositionPubMsg';
return RedisPubSub.publishUserMessage(CHANNEL, EVENT_NAME, meetingId, requesterUserId, payload);
}

View File

@ -4,10 +4,6 @@ import PollService from '/imports/ui/components/poll/service';
import { defineMessages } from 'react-intl';
import { notify } from '/imports/ui/services/notification';
import caseInsensitiveReducer from '/imports/utils/caseInsensitiveReducer';
import { throttle } from '/imports/utils/throttle';
import { makeCall } from '/imports/ui/services/api';
const { cursorInterval: CURSOR_INTERVAL } = window.meetingClientSettings.public.whiteboard;
const intlMessages = defineMessages({
notifyNotAllowedChange: {
@ -282,11 +278,6 @@ const formatAnnotations = (annotations, intl, curPageId, currentPresentationPage
return result;
};
const publishCursorUpdate = throttle(
(payload) => makeCall('publishCursorUpdate', Auth.meetingID, Auth.userID, payload),
CURSOR_INTERVAL,
);
export {
initDefaultPages,
sendAnnotation,
@ -296,5 +287,4 @@ export {
notifyShapeNumberExceeded,
toggleToolsAnimations,
formatAnnotations,
publishCursorUpdate,
};

View File

@ -3,7 +3,6 @@ import '/imports/startup/server';
// 2x
import '/imports/api/meetings/server';
import '/imports/api/users/server';
import '/imports/api/cursor/server';
import '/imports/api/polls/server';
import '/imports/api/captions/server';
import '/imports/api/presentation-upload-token/server';