From 1e1ad070b6b0192c4657ec7a18c1763c7af114fe Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 23 Feb 2013 06:28:09 -0800 Subject: [PATCH] Delete two unused variables Summary: `image` has been replaced with `active_image`. `imageData` is from a long time ago, I think. Test Plan: Verified nothing seems to be broken. Reviewers: chad, ljalonen Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D5084 --- src/__celerity_resource_map__.php | 2 +- .../js/application/pholio/behavior-pholio-mock-view.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index eca391d9a2..cfbcf2c894 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -1873,7 +1873,7 @@ celerity_register_resource_map(array( ), 'javelin-behavior-pholio-mock-view' => array( - 'uri' => '/res/23bf68aa/rsrc/js/application/pholio/behavior-pholio-mock-view.js', + 'uri' => '/res/a6fae7ae/rsrc/js/application/pholio/behavior-pholio-mock-view.js', 'type' => 'js', 'requires' => array( diff --git a/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js b/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js index 38b536a338..7057cc11f9 100644 --- a/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js +++ b/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js @@ -12,8 +12,6 @@ JX.behavior('pholio-mock-view', function(config) { var is_typing = false; var wrapper = JX.$('mock-wrapper'); - var image; - var imageData; var startPos; var endPos; @@ -75,7 +73,7 @@ JX.behavior('pholio-mock-view', function(config) { function getRealXY(parent, point) { var pos = {x: (point.x - parent.x), y: (point.y - parent.y)}; - var dim = JX.Vector.getDim(image); + var dim = JX.Vector.getDim(JX.$(config.mainID)); pos.x = Math.max(0, Math.min(pos.x, dim.x)); pos.y = Math.max(0, Math.min(pos.y, dim.y)); @@ -94,9 +92,6 @@ JX.behavior('pholio-mock-view', function(config) { JX.DOM.remove(selection_border); } - image = JX.$(config.mainID); - imageData = JX.Stratcom.getData(image); - e.getRawEvent().target.draggable = false; is_dragging = true;