##// END OF EJS Templates
hgweb: remove unused colorPart() from mercurial.js...
av6 -
r26867:ad443e8d default
parent child Browse files
Show More
@@ -50,18 +50,6 b' function Graph() {'
50 this.cell_height = this.box_size;
50 this.cell_height = this.box_size;
51 }
51 }
52
52
53 function colorPart(num) {
54 num *= 255
55 num = num < 0 ? 0 : num;
56 num = num > 255 ? 255 : num;
57 var digits = Math.round(num).toString(16);
58 if (num < 16) {
59 return '0' + digits;
60 } else {
61 return digits;
62 }
63 }
64
65 this.setColor = function(color, bg, fg) {
53 this.setColor = function(color, bg, fg) {
66
54
67 // Set the colour.
55 // Set the colour.
General Comments 0
You need to be logged in to leave comments. Login now