Patchwork [4,of,4] hgweb: remove unused Graph() properties

login
register
mail settings
Submitter Anton Shestakov
Date Nov. 25, 2017, 8:50 a.m.
Message ID <9a624c9eeee406865481.1511599841@neuro>
Download mbox | patch
Permalink /patch/25749/
State Accepted
Headers show

Comments

Anton Shestakov - Nov. 25, 2017, 8:50 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1511596887 -28800
#      Sat Nov 25 16:01:27 2017 +0800
# Node ID 9a624c9eeee40686548135e763151da278294471
# Parent  06cbefc6daccd825dac7d0ca4a8aba103fec973a
# EXP-Topic hgweb-cleanup
hgweb: remove unused Graph() properties

Both of these were introduced in 0dba955c2636, but were already unused.

Patch

diff --git a/mercurial/templates/static/mercurial.js b/mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js
+++ b/mercurial/templates/static/mercurial.js
@@ -30,11 +30,9 @@  function Graph() {
 	this.ctx.strokeStyle = 'rgb(0, 0, 0)';
 	this.ctx.fillStyle = 'rgb(0, 0, 0)';
 	this.cur = [0, 0];
-	this.line_width = 3;
 	this.bg = [0, 4];
 	this.cell = [2, 0];
 	this.columns = 0;
-	this.revlink = '';
 
 	this.reset = function() {
 		this.bg = [0, 4];