removed no longer used colorFromString

This commit is contained in:
dzannotti 2015-08-11 22:47:45 +01:00
parent 6f839bdc10
commit 39512ff8e9

View File

@ -2,14 +2,6 @@ import React, { PropTypes } from 'react';
import JSONTree from './JSONTree'; import JSONTree from './JSONTree';
import LogMonitorEntryAction from './LogMonitorEntryAction'; import LogMonitorEntryAction from './LogMonitorEntryAction';
function colorFromString(theme, token) {
const splitToken = token.split('');
const finalToken = splitToken.concat(splitToken.reverse());
const number = (parseInt(finalToken, 36) + finalToken.length) % 8;
const themeNumber = 'base0' + (number + 8).toString(16).toUpperCase();
return theme[themeNumber];
}
const styles = { const styles = {
entry: { entry: {
display: 'block', display: 'block',