allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [13/50] [abbrv] allura git commit: [#7919] remove unused bits of code
Date Fri, 08 Jan 2016 19:30:18 GMT
[#7919] remove unused bits of code


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/2823e7f5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/2823e7f5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/2823e7f5

Branch: refs/heads/master
Commit: 2823e7f5b29eb6a7bc41bad8809fdef06f8ebe1d
Parents: 9b28d94
Author: Dave Brondsema <dave@brondsema.net>
Authored: Mon Dec 7 15:21:11 2015 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jan 8 14:06:15 2016 -0500

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py    | 27 ---------------------------
 Allura/allura/public/nf/js/navbar.es6.js |  1 -
 2 files changed, 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/2823e7f5/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index 6bb6b46..d9f87fa 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -880,33 +880,6 @@ class ProjectAdminRestController(BaseController):
         }
 
     @expose('json:')
-    @require_post() # FIXME
-    def mount_point(self, mount_point=None, **kw):
-        """
-        Returns a tool from a given mount point
-        """
-        response.content_type = 'application/json'
-
-        tool = c.project.app_instance(mount_point)
-
-        if tool is None:
-            return {
-                'exists': False,
-                'info': 'Mount point does not exists.',
-            }
-
-        try:
-            info = json.dumps(tool)
-            # FIXME
-        except TypeError:
-            info = "Could not serialize tool."
-
-        return {
-            'exist': True,
-            'info': info
-        }
-
-    @expose('json:')
     def admin_options(self, mount_point=None, **kw):
         """
         Returns the admin options for a given mount_point

http://git-wip-us.apache.org/repos/asf/allura/blob/2823e7f5/Allura/allura/public/nf/js/navbar.es6.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/navbar.es6.js b/Allura/allura/public/nf/js/navbar.es6.js
index 819bc2f..9f805fe 100644
--- a/Allura/allura/public/nf/js/navbar.es6.js
+++ b/Allura/allura/public/nf/js/navbar.es6.js
@@ -464,7 +464,6 @@ var Main = React.createClass({
         return {
             data: this.props.initialData,
             visible: true,
-            _session_id: $.cookie('_session_id'),
             currentOptionMenu: {
                 tool: null
             }


Mime
View raw message