From 328281df0f0e7910f8315d378a3c7d7946f478b3 Mon Sep 17 00:00:00 2001 From: Kouji Takao Date: Wed, 31 Dec 2025 18:00:05 +0900 Subject: [PATCH] fix: remove unused FIRE_EVENT and ON_EVENT operations - Removed FIRE_EVENT mutation and ON_EVENT subscription from gql-operations.js - These operations are no longer used by the VM and have been removed from the backend GitHub Issue: smalruby/mesh-v2#24 Co-Authored-By: Gemini --- .../scratch3_mesh_v2/gql-operations.js | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/extensions/scratch3_mesh_v2/gql-operations.js b/src/extensions/scratch3_mesh_v2/gql-operations.js index 5c1d2d7936..8c82f7ec0d 100644 --- a/src/extensions/scratch3_mesh_v2/gql-operations.js +++ b/src/extensions/scratch3_mesh_v2/gql-operations.js @@ -106,19 +106,6 @@ const REPORT_DATA = gql` } `; -const FIRE_EVENT = gql` - mutation FireEventByNode($groupId: ID!, $domain: String!, $nodeId: ID!, $eventName: String!, $payload: String) { - fireEventByNode(groupId: $groupId, domain: $domain, nodeId: $nodeId, eventName: $eventName, payload: $payload) { - name - firedByNodeId - groupId - domain - payload - timestamp - } - } -`; - const FIRE_EVENTS = gql` mutation FireEventsByNode($groupId: ID!, $domain: String!, $nodeId: ID!, $events: [EventInput!]!) { fireEventsByNode(groupId: $groupId, domain: $domain, nodeId: $nodeId, events: $events) { @@ -153,19 +140,6 @@ const ON_DATA_UPDATE = gql` } `; -const ON_EVENT = gql` - subscription OnEventInGroup($groupId: ID!, $domain: String!) { - onEventInGroup(groupId: $groupId, domain: $domain) { - name - firedByNodeId - groupId - domain - payload - timestamp - } - } -`; - const ON_BATCH_EVENT = gql` subscription OnBatchEventInGroup($groupId: ID!, $domain: String!) { onBatchEventInGroup(groupId: $groupId, domain: $domain) { @@ -220,10 +194,8 @@ module.exports = { RENEW_HEARTBEAT, SEND_MEMBER_HEARTBEAT, REPORT_DATA, - FIRE_EVENT, FIRE_EVENTS, ON_DATA_UPDATE, - ON_EVENT, ON_BATCH_EVENT, ON_GROUP_DISSOLVE, LIST_GROUP_STATUSES