You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2018/08/22 05:08:17 UTC

[incubator-superset] branch big-number-color updated: remove module

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch big-number-color
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/big-number-color by this push:
     new f7d5fdb  remove module
f7d5fdb is described below

commit f7d5fdbce6791f2dd5e001ce1760d171132a59d3
Author: Hugh Miles <hm...@lyft.com>
AuthorDate: Tue Aug 21 22:08:04 2018 -0700

    remove module
---
 superset/assets/src/modules/colors.js | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/superset/assets/src/modules/colors.js b/superset/assets/src/modules/colors.js
index be913ee..0bb3221 100644
--- a/superset/assets/src/modules/colors.js
+++ b/superset/assets/src/modules/colors.js
@@ -593,12 +593,3 @@ export function hexToRGB(hex, alpha = 255) {
   const b = parseInt(hex.slice(5, 7), 16);
   return [r, g, b, alpha];
 }
-
-
-export const rgbToHex = function (color) {
-    console.log(color);
-    return (color && Object.keys(color).length === 4) ?
-           '#' + ('0' + parseInt(color.r, 10).toString(16)).slice(-2) +
-          ('0' + parseInt(color.g, 10).toString(16)).slice(-2) +
-          ('0' + parseInt(color.b, 10).toString(16)).slice(-2) : '';
-};