about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-21 08:06:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-21 08:06:29 -0700
commite440e3e06efddb2cb6a821df32a3e07cd748bf8a (patch)
treec51c5029bff67925fa7dea80e4945e778e9c2844
parent8e7b4429787bc2b7fe289f264d09a4b1f5f6b081 (diff)
downloadmu-e440e3e06efddb2cb6a821df32a3e07cd748bf8a.tar.gz
3236
-rw-r--r--087file.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/087file.cc b/087file.cc
index ebb90689..6db0008d 100644
--- a/087file.cc
+++ b/087file.cc
@@ -19,7 +19,6 @@ case _OPEN_FILE_FOR_READING: {
     raise << maybe(get(Recipe, r).name) << "'$open-file-for-reading' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end();
     break;
   }
-  string filename;
   if (!is_mu_string(inst.ingredients.at(0))) {
     raise << maybe(get(Recipe, r).name) << "first ingredient of '$open-file-for-reading' should be a string, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end();
     break;
@@ -47,7 +46,6 @@ case _OPEN_FILE_FOR_WRITING: {
     raise << maybe(get(Recipe, r).name) << "'$open-file-for-writing' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end();
     break;
   }
-  string filename;
   if (!is_mu_string(inst.ingredients.at(0))) {
     raise << maybe(get(Recipe, r).name) << "first ingredient of '$open-file-for-writing' should be a string, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end();
     break;
@@ -74,7 +72,6 @@ case _READ_FROM_FILE: {
     raise << maybe(get(Recipe, r).name) << "'$read-from-file' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end();
     break;
   }
-  string filename;
   if (!is_mu_number(inst.ingredients.at(0))) {
     raise << maybe(get(Recipe, r).name) << "first ingredient of '$read-from-file' should be a number, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end();
     break;
@@ -120,7 +117,6 @@ case _WRITE_TO_FILE: {
     raise << maybe(get(Recipe, r).name) << "'$write-to-file' requires exactly two ingredients, but got '" << inst.original_string << "'\n" << end();
     break;
   }
-  string filename;
   if (!is_mu_number(inst.ingredients.at(0))) {
     raise << maybe(get(Recipe, r).name) << "first ingredient of '$write-to-file' should be a number, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end();
     break;
@@ -165,7 +161,6 @@ case _CLOSE_FILE: {
     raise << maybe(get(Recipe, r).name) << "'$close-file' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end();
     break;
   }
-  string filename;
   if (!is_mu_number(inst.ingredients.at(0))) {
     raise << maybe(get(Recipe, r).name) << "first ingredient of '$close-file' should be a number, but got '" << to_string(inst.ingredients.at(0)) << "'\n" << end();
     break;