diff options
author | wuestholz <unknown> | 2013-06-03 16:49:40 -0700 |
---|---|---|
committer | wuestholz <unknown> | 2013-06-03 16:49:40 -0700 |
commit | bf3d3fb3691cd4c64d79d084923377253cfa4dc1 (patch) | |
tree | 94962cd5bec717ad78eda132ec91048793211db2 /Source/DafnyDriver | |
parent | 6eb7df44c4445a9f8ebd3ca1bef6aeb9923e74b8 (diff) |
Did some refactoring of the Dafny drivers.
Diffstat (limited to 'Source/DafnyDriver')
-rw-r--r-- | Source/DafnyDriver/DafnyDriver.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Source/DafnyDriver/DafnyDriver.cs b/Source/DafnyDriver/DafnyDriver.cs index 8b587a86..e3bea140 100644 --- a/Source/DafnyDriver/DafnyDriver.cs +++ b/Source/DafnyDriver/DafnyDriver.cs @@ -146,28 +146,6 @@ namespace Microsoft.Dafny // TODO(wuestholz): Use the definition in the Boogie driver.
- static void PrintBplFile(string filename, Bpl.Program program, bool allowPrintDesugaring)
- {
- Contract.Requires(filename != null);
- Contract.Requires(program != null);
- bool oldPrintDesugaring = CommandLineOptions.Clo.PrintDesugarings;
- if (!allowPrintDesugaring) {
- CommandLineOptions.Clo.PrintDesugarings = false;
- }
- using (TokenTextWriter writer = filename == "-" ?
- new TokenTextWriter("<console>", Console.Out, false) :
- new TokenTextWriter(filename, false))
- {
- writer.WriteLine("// " + CommandLineOptions.Clo.Version);
- writer.WriteLine("// " + CommandLineOptions.Clo.Environment);
- writer.WriteLine();
- program.Emit(writer);
- }
- CommandLineOptions.Clo.PrintDesugarings = oldPrintDesugaring;
- }
-
-
- // TODO(wuestholz): Use the definition in the Boogie driver.
/// <summary>
/// Parse the given files into one Boogie program. If an I/O or parse error occurs, an error will be printed
/// and null will be returned. On success, a non-null program is returned.
|