X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floader.cpp;h=c495c4cab71ed67b11d678e0cacaf02eec0bb312;hb=07d4c0e55aa9571c9f24cf39d134f1f7474fd7cb;hp=1250d0fa608cad151ebfc3671bc08d12ed914a44;hpb=bf2cb951aa1a160049fb976c5ad6adb744b0c5c2;p=libs%2Fdatafile.git diff --git a/source/loader.cpp b/source/loader.cpp index 1250d0f..c495c4c 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -70,7 +70,7 @@ public: class invalid_signature: public runtime_error { public: - invalid_signature(const std::string &k, const std::string & s): + invalid_signature(const std::string &k, const std::string &s): runtime_error(format("%s %s", k, s)) { } @@ -176,13 +176,6 @@ const string &Loader::get_source() const return cur_st->source; } -void Loader::error(const string &msg) const -{ - if(!cur_st) - throw logic_error("!cur_st"); - throw data_error(cur_st->source, cur_st->line, msg); -} - Loader::ActionKey::ActionKey(const string &k, const string &s): keyword(k),