diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-07-21 21:29:15 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-08-10 18:49:41 +0800 |
commit | 0d163aaff14cc1df8aabea9f12599fd2b38971cd (patch) | |
tree | 371b0cccb8c8b3bd23efe730c7690d6c82636d33 | |
parent | 5cb639d3e02d10abb0c1b7d056b90c35063405e7 (diff) | |
download | dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.tar dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.tar.gz dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.tar.bz2 dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.tar.lz dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.tar.xz dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.tar.zst dexon-solidity-0d163aaff14cc1df8aabea9f12599fd2b38971cd.zip |
clean up
-rw-r--r-- | CommandLineInterface.cpp | 3 | ||||
-rw-r--r-- | CommandLineInterface.h | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 60967895..f1350014 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -304,8 +304,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da fs::path p(m_args["output-dir"].as<string>()); fs::create_directories(p); ofstream outFile(m_args["output-dir"].as<string>() + "/" + _fileName); - if (!_data.empty()) - outFile << _data; + outFile << _data; if (!outFile) BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _fileName)); outFile.close(); diff --git a/CommandLineInterface.h b/CommandLineInterface.h index 715f381b..f79bc0be 100644 --- a/CommandLineInterface.h +++ b/CommandLineInterface.h @@ -33,12 +33,6 @@ namespace solidity //forward declaration enum class DocumentationType: uint8_t; -enum class OutputType: uint8_t -{ - STDOUT, - FILE, -}; - class CommandLineInterface { public: @@ -66,7 +60,7 @@ private: /// Create a file in the given directory /// @arg _fileName the name of the file /// @arg _data to be written - void createFile(std::string const& _fileName, std::string const& _data = ""); + void createFile(std::string const& _fileName, std::string const& _data); /// Compiler arguments variable map boost::program_options::variables_map m_args; |