]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/controllers.js
Removes some unused code.
[bookstack] / resources / assets / js / controllers.js
index 7f2e6cdb4486597537196c011707383ffe6796bd..32ff76fa167bc9dad0a470a2429ed147ad4a3718 100644 (file)
@@ -144,17 +144,4 @@ module.exports = function (ngApp, events) {
         };
 
     }]);
-
-    // Controller used to fetch all comments for a page
-    ngApp.controller('CommentListController', ['$scope', '$http', '$timeout', '$location', function ($scope, $http, $timeout, $location) {
-
-        function focusLinkedComment(linkedCommentId) {
-            let comment = angular.element('#' + linkedCommentId);
-            if (comment.length === 0) {
-                return;
-            }
-
-            window.setupPageShow.goToText(linkedCommentId);
-        }
-    }]);
 };