From 43ae1edac54048522d8209a63674b04db8a3d8b8 Mon Sep 17 00:00:00 2001 From: Bryan Donovan Date: Mon, 7 Jan 2013 09:46:33 -0800 Subject: cleanup old code --- lib/random.js | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/lib/random.js b/lib/random.js index 698dd68a..5717a20a 100644 --- a/lib/random.js +++ b/lib/random.js @@ -89,50 +89,4 @@ var random = { } }; -/** - * Generate methods that return random elements from definition arrays. - */ -var method_names = [ - // Address - 'city_prefix', - 'city_suffix', - 'street_suffix', - 'br_state', - 'br_state_abbr', - 'us_state', - 'us_state_abbr', - 'uk_county', - 'uk_country', - - // Name - 'first_name', - 'last_name', - 'name_prefix', - 'name_suffix', - - // Company - 'catch_phrase_adjective', - 'catch_phrase_descriptor', - 'catch_phrase_noun', - 'bs_adjective', - 'bs_buzz', - 'bs_noun' -]; - -/* -method_names.forEach(function (method_name) { - random[method_name] = function () { - return random.array_rand(definitions[method_name]()); - }; -}); - -method_names.forEach(function (method_name) { - var str = method_name + ': function () {\n' + - ' return random.array_rand(definitions.' + method_name + '());\n' + - '},\n'; - console.log(str); -}); - -*/ - module.exports = random; -- cgit v1.2.3