From 061e7ba4d49c33a8d1344db2e3010939c353bd3a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 6 Jun 2014 22:44:56 +0200 Subject: [PATCH] Remove some dead code --- lib/Vroom/I18N/en.pm | 2 -- lib/Vroom/I18N/fr.pm | 2 -- public/js/vroom.js | 10 ---------- 3 files changed, 14 deletions(-) diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index cb6e5f5..8b93a79 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -36,7 +36,6 @@ our %Lexicon = ( "YOUR_FEEDBACK_HELPS_US" => "Your feedback (good or bad) can help us improve this application", "ROOM_LOCKED" => "This room is now locked", "ROOM_UNLOCKED" => "This room is now unlocked", - "ONE_OF_THE_PEERS" => "one of the peers", "ROOM_LOCKED_BY_s" => "%s locked the room", "ROOM_UNLOCKED_BY_s" => "%s unlocked the room", "PASSWORD_PROTECT_ON_BY_s" => "%s password protected the room", @@ -220,7 +219,6 @@ our %Lexicon = ( "EVERYONE_CAN_SEE_YOUR_SCREEN" => "All other participants can see your screen now", "SCREEN_UNSHARED" => "You do no longer share your screen", "ERROR_MAIL_INVALID" => "Please enter a valid email address", - "CANT_SEND_TO_s" => "Couldn't send message to %s", "SCREEN_s" => "%s's screen", "BROWSER_NOT_SUPPORTED" => "Browser not supported", "NO_WEBRTC_SUPPORT" => "Sorry, but the video conference will not work because your web browser doesn't have the " . diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index e7bd010..222e9bb 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -40,7 +40,6 @@ our %Lexicon = ( "INVITE_SENT_TO_s" => "Une invitation a été envoyée à %s", "ROOM_LOCKED" => "Ce salon est maintenant verrouillé", "ROOM_UNLOCKED" => "Ce salon est maintenant déverrouillé", - "ONE_OF_THE_PEERS" => "un des participants", "ROOM_LOCKED_BY_s" => "%s a verrouillé le salon", "ROOM_UNLOCKED_BY_s" => "%s a déverrouillé le salon", "PASSWORD_PROTECT_ON_BY_s" => "%s a protégé le salon par un mot de passe", @@ -244,7 +243,6 @@ our %Lexicon = ( "EVERYONE_CAN_SEE_YOUR_SCREEN" => "Tous les autres participants peuvent voir votre écran", "SCREEN_UNSHARED" => "Vous ne partagez plus votre écran", "ERROR_MAIL_INVALID" => "Veuillez saisir une adresse email valide", - "CANT_SEND_TO_s" => "Le message n'a pas pu être envoyé à %s", "SCREEN_s" => "Écran de %s", "BROWSER_NOT_SUPPORTED" => "Navigateur non supporté", "NO_WEBRTC_SUPPORT" => "Désolé, la vidéo conférence ne fonctionnera pas (ou pas correctement) car votre navigateur " . diff --git a/public/js/vroom.js b/public/js/vroom.js index 361e253..ba40bff 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -32,14 +32,12 @@ var locale = { CAM_SUSPENDED: '', CAM_RESUMED: '', SET_YOUR_NAME_TO_CHAT: '', - ONE_OF_THE_PEERS: '', ROOM_LOCKED_BY_s: '', ROOM_UNLOCKED_BY_s: '', PASSWORD_PROTECT_ON_BY_s: '', PASSWORD_PROTECT_OFF_BY_s: '', OWNER_PASSWORD_CHANGED_BY_s: '', OWNER_PASSWORD_REMOVED_BY_s: '', - CANT_SEND_TO_s: '', SCREEN_s: '', TO_INVITE_SHARE_THIS_URL: '', NO_SOUND_DETECTED: '', @@ -1262,14 +1260,6 @@ function initVroom(room) { } }); - // Error sending something through dataChannel - webrtc.on('cantsend', function (peer, message){ - if (message.type == 'textChat'){ - var who = (peers[peer.id].hasName) ? stringEscape(peers[peer.id].displayName) : locale.ONE_OF_THE_PEERS; - $.notify(sprintf(locale.CANT_SEND_TO_s, who), 'error'); - } - }); - // Do not close the dropdown menus (invite/conf) when filling fields $('.dropdown-menu').on('click', 'li', function(e){ e.stopPropagation();