Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
Looks like this code dates back to early 2011. At some point the
main implementation must have been removed but these changes were
erroneously left in.
  • Loading branch information
jpwhite4 committed Apr 25, 2017
1 parent 4070a93 commit 6a8dab4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 130 deletions.
102 changes: 0 additions & 102 deletions html/controllers/session_pool.php

This file was deleted.

4 changes: 1 addition & 3 deletions html/gui/js/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ Ext.extend(CCR.xdmod.ui.Viewer, Ext.Viewport, {
continue;
}
tabPanel.add(tabInstance);
if (tab.isDefault == true && !isCallCached) {
if (tab.isDefault === true) {
tabToken = tabToken || mainTabToken + CCR.xdmod.ui.tokenDelimiter + tab.tab;
}
}
Expand All @@ -439,8 +439,6 @@ Ext.extend(CCR.xdmod.ui.Viewer, Ext.Viewport, {
mainPanel.el.unmask();
}

consultCallCache();

//Conditionally present the profile if an e-mail address has not been set
xsedeProfilePrompt();

Expand Down
25 changes: 0 additions & 25 deletions html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,6 @@ function isReferrer($referrer)

<script type="text/javascript">

var isCallCached = false;
var consultCallCache = function() {};
var xsedeProfilePrompt = function() {};

<?php if (!$userLoggedIn): ?>
Expand All @@ -511,18 +509,6 @@ function isReferrer($referrer)
});
<?php else: ?>
<?php
if (isset($_SESSION['cached_call']) && !empty($_SESSION['cached_call'])) {
?>

isCallCached = true;
consultCallCache = function() { CCR.xdmod.ui.Viewer.<?php print $_SESSION['cached_call']; ?> }

<?php

unset($_SESSION['cached_call']);

}

// ==============================================

$profile_editor_init_flag = '';
Expand Down Expand Up @@ -594,17 +580,6 @@ function isReferrer($referrer)
<iframe id="x-history-frame"></iframe>
</form>

<?php if (!$userLoggedIn): ?>
<!-- For caching calls (e.g. goToChart(...), made when an image thumbnail is clicked) -->
<form name="function_call_cacher" class="x-hidden" method="POST" action="index.php">
<input type="hidden" id="cached_call" name="cached_call" value="">
</form>
<?php endif; ?>

<div class="x-hidden">
<iframe name="pdf_target_frame"></iframe>
</div>

<div id="viewer"> </div>

<noscript>
Expand Down

0 comments on commit 6a8dab4

Please sign in to comment.