From b315b148c238a3a5944f5409ef351625dc56f578 Mon Sep 17 00:00:00 2001
From: Benjamin Gilbert <bgilbert@backtick.net>
Date: Wed, 24 Apr 2013 23:57:35 -0400
Subject: [PATCH] Drop remains of code to show "Loading..." message

It calls a method that no longer exists, but only when an impossible
condition is true.
---
 src/viewer.js | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/viewer.js b/src/viewer.js
index b6026148..f0b698b8 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -115,8 +115,6 @@ $.Viewer = function( options ) {
     THIS[ this.hash ] = {
         "fsBoundsDelta":     new $.Point( 1, 1 ),
         "prevContainerSize": null,
-        "lastOpenStartTime": 0,
-        "lastOpenEndTime":   0,
         "animating":         false,
         "forceRedraw":       false,
         "mouseInside":       false,
@@ -956,16 +954,6 @@ function openTileSource( viewer, source ) {
         _this.close( );
     }
     
-    // to ignore earlier opens
-    THIS[ _this.hash ].lastOpenStartTime = +new Date();
-
-    window.setTimeout( function () {
-        if ( THIS[ _this.hash ].lastOpenStartTime > THIS[ _this.hash ].lastOpenEndTime ) {
-            THIS[ _this.hash ].setMessage( $.getString( "Messages.Loading" ) );
-        }
-    }, 2000);
-
-    THIS[ _this.hash ].lastOpenEndTime = +new Date();
     _this.canvas.innerHTML = "";
     THIS[ _this.hash ].prevContainerSize = $.getElementSize( _this.container );