/*
 *  Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

(function() {
  'use strict';
  var module = angular.module('bk.notebook');
  module.directive('bkMarkdownCell', [
      'bkSessionManager',
      'bkHelper',
      'bkCoreManager',
      '$timeout', function(
        bkSessionManager,
        bkHelper,
        bkCoreManager,
        $timeout) {

        var notebookCellOp = bkSessionManager.getNotebookCellOp();
        var getBkNotebookWidget = function() {
          return bkCoreManager.getBkApp().getBkNotebookWidget();
        };

        return {
          restrict: 'E',
          template: JST['mainapp/components/notebook/markdowncell'](),
          controller: function($scope) {
            $scope.getFullIndex = function() {
              return $scope.$parent.$parent.$parent.getFullIndex() + '.' + ($scope.$parent.index + 1);
            };
          }
        };
      }]);
})();

/*
 *  Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

(function() {
  'use strict';
  var module = angular.module('bk.notebook');
  module.directive('bkMarkdownCell', [
      'bkSessionManager',
      'bkHelper',
      'bkCoreManager',
      '$timeout', function(
        bkSessionManager,
        bkHelper,
        bkCoreManager,
        $timeout) {

        return {
          restrict: 'E',
          template: JST['mainapp/components/notebook/markdowncell'](),
          controller: function($scope) {
            $scope.getFullIndex = function() {
              return $scope.$parent.$parent.$parent.getFullIndex() + '.' + ($scope.$parent.index + 1);
            };
          }
        };
      }]);
})();

Remove unreachable code in markdowncell
Remove unreachable code in markdowncell

This code was refactored in 1112647a69a8e9d9e0c5b71ab8a733fcb53eeee0
and was never removed.
