Skip to content

Commit

Permalink
refactor(table): remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 29, 2020
1 parent 87d1b0f commit 6d00cc3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/table/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,6 @@ export function stripeColors( str: string ): string {
return str.replace( COLOR_REGEX, '' );
}

/**
* Fill string with given char until the string has a specified length.
*
* @param count The length until the string will be filled.
* @param str The string to fill.
* @param char The char to fill the string with.
*/
export function fill( count: number, str: string = '', char: string = ' ' ) {

let length = stripeColors( str ).length;

while ( length < count ) {
str += char;
length += char.length;
}

return str;
}

/**
* Get longest cell from given row index.
*
Expand Down

0 comments on commit 6d00cc3

Please sign in to comment.