Patchwork [1,of,3] hgweb: remove unused Graph.cur property

login
register
mail settings
Submitter Anton Shestakov
Date Dec. 6, 2017, 8:35 a.m.
Message ID <20b6f1981b961369ce50.1512549308@neuro>
Download mbox | patch
Permalink /patch/25963/
State Accepted
Headers show

Comments

Anton Shestakov - Dec. 6, 2017, 8:35 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1512532759 -28800
#      Wed Dec 06 11:59:19 2017 +0800
# Node ID 20b6f1981b961369ce5004c5a48da3fe8b6b10ff
# Parent  aa14b97727c79991683a2ffd45986d18e3657576
# EXP-Topic hgweb-cleanup
hgweb: remove unused Graph.cur property

It was introduced in 0dba955c2636, but was already unused. I missed it in
e46f0b653002.
Yuya Nishihara - Dec. 6, 2017, 1:40 p.m.
On Wed, 06 Dec 2017 16:35:08 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6@dwimlabs.net>
> # Date 1512532759 -28800
> #      Wed Dec 06 11:59:19 2017 +0800
> # Node ID 20b6f1981b961369ce5004c5a48da3fe8b6b10ff
> # Parent  aa14b97727c79991683a2ffd45986d18e3657576
> # EXP-Topic hgweb-cleanup
> hgweb: remove unused Graph.cur property

Queued, thanks.

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
@@ -29,7 +29,6 @@  function Graph() {
 	this.ctx = this.canvas.getContext('2d');
 	this.ctx.strokeStyle = 'rgb(0, 0, 0)';
 	this.ctx.fillStyle = 'rgb(0, 0, 0)';
-	this.cur = [0, 0];
 	this.bg = [0, 4];
 	this.cell = [2, 0];
 	this.columns = 0;