Skip to content

Commit

Permalink
[faker-js#690] chore: deleted dead code marked as TO_DO
Browse files Browse the repository at this point in the history
  • Loading branch information
rimakan committed Apr 1, 2022
1 parent c3be3b1 commit ec3c8a0
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/commerce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,34 +89,6 @@ export class Commerce {
);
}

// TODO @Shinigami92 2022-01-12: unimplemented member functions

/*
categories (num) {
var categories = [];
do {
var category = this.faker.random.arrayElement(this.faker.definitions.commerce.department);
if(categories.indexOf(category) === -1) {
categories.push(category);
}
} while(categories.length < num);
return categories;
};
*/
/*
mergeCategories (categories) {
var separator = this.faker.definitions.separator || " &";
// TODO: find undefined here
categories = categories || this.faker.definitions.commerce.categories;
var commaSeparated = categories.slice(0, -1).join(', ');
return [commaSeparated, categories[categories.length - 1]].join(separator + " ");
};
*/

/**
* Returns an adjective describing a product.
*
Expand Down

0 comments on commit ec3c8a0

Please sign in to comment.