diff options
| author | Bryan Donovan <[email protected]> | 2013-01-07 09:46:33 -0800 |
|---|---|---|
| committer | Bryan Donovan <[email protected]> | 2013-01-07 09:46:33 -0800 |
| commit | 43ae1edac54048522d8209a63674b04db8a3d8b8 (patch) | |
| tree | 39f86f0dcf5b2e6b1731e0f7620016de87427596 /lib/random.js | |
| parent | 3e7708860399e4570d1b6048f2752b1b885f8ef9 (diff) | |
| download | faker-43ae1edac54048522d8209a63674b04db8a3d8b8.tar.xz faker-43ae1edac54048522d8209a63674b04db8a3d8b8.zip | |
cleanup old code
Diffstat (limited to 'lib/random.js')
| -rw-r--r-- | lib/random.js | 46 |
1 files changed, 0 insertions, 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; |
