From 15583ec552c6a99349dc4988a268ac88ec72791a Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 9 May 2023 21:16:36 +0200 Subject: [PATCH] Drop outdated JavaScript code no longer used --- app/assets/javascripts/editor/evaluation.js | 1 - app/assets/javascripts/editor/submissions.js | 9 --------- 2 files changed, 10 deletions(-) diff --git a/app/assets/javascripts/editor/evaluation.js b/app/assets/javascripts/editor/evaluation.js index e12e41a0..42930fb5 100644 --- a/app/assets/javascripts/editor/evaluation.js +++ b/app/assets/javascripts/editor/evaluation.js @@ -1,5 +1,4 @@ CodeOceanEditorEvaluation = { - chunkBuffer: [{streamedResponse: true}], // A list of non-printable characters that are not allowed in the code output. // Taken from https://stackoverflow.com/a/69024306 nonPrintableRegEx: /[\u0000-\u0008\u000B\u000C\u000F-\u001F\u007F-\u009F\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\uFEFF]/g, diff --git a/app/assets/javascripts/editor/submissions.js b/app/assets/javascripts/editor/submissions.js index d54011ba..0670731c 100644 --- a/app/assets/javascripts/editor/submissions.js +++ b/app/assets/javascripts/editor/submissions.js @@ -184,15 +184,6 @@ CodeOceanEditorSubmissions = { this.initializeSocketForRunning(url); }, - saveCode: function(event) { - event.preventDefault(); - this.createSubmission('#save', null, function() { - $.flash.success({ - text: $('#save').data('message-success') - }); - }); - }, - testCode: function(event) { const cause = $('#test'); this.startSentryTransaction(cause);