Skip to content

Commit

Permalink
remove some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Sep 24, 2015
1 parent 50f289c commit 648f0a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions src/main/DisplayMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ var DisplayMode = {
}
},

toString(mode: number): string {
if (mode == DisplayMode.LOOSE) {
return 'loose';
} else if (mode == DisplayMode.TIGHT) {
return 'tight';
} else if (mode == DisplayMode.BLOCKS) {
return 'blocks';
} else {
return 'hidden';
}
},

isText(mode: number): boolean {
return (mode == DisplayMode.LOOSE || mode == DisplayMode.TIGHT);
}
Expand Down
9 changes: 0 additions & 9 deletions src/main/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,6 @@ function inflateGzip(buffer: ArrayBuffer): ArrayBuffer {
return concatArrayBuffers(inflateConcatenatedGzip(buffer).map(x => x.buffer));
}

/**
* Generate a space-separated css class name for a base pair.
*/
function basePairClass(basePair: ?string): string {
if (!basePair) return 'basepair';
return 'basepair ' + basePair;
}

// Given 'chr9', return '9'. Given '9', return 'chr9'.
function altContigName(contig: string): string {
if (contig.slice(0, 3) == 'chr') {
Expand All @@ -167,7 +159,6 @@ module.exports = {
concatArrayBuffers,
inflateConcatenatedGzip,
inflateGzip,
basePairClass,
altContigName,
pipePromise
};

0 comments on commit 648f0a8

Please sign in to comment.