X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floaderaction.h;h=5b2f0b0f022016cc97dbce52bb3d09aab7887bf0;hb=302f73123da1194dd91b43138cd880cae9318a14;hp=22fb82ad13691209b484383fa421c48fd188b024;hpb=7df5e45c7f414f6a07681dc4ec2abb63b091a309;p=libs%2Fdatafile.git diff --git a/source/loaderaction.h b/source/loaderaction.h index 22fb82a..5b2f0b0 100644 --- a/source/loaderaction.h +++ b/source/loaderaction.h @@ -1,7 +1,6 @@ #ifndef MSP_DATAFILE_LOADERACTION_H_ #define MSP_DATAFILE_LOADERACTION_H_ -#include "except.h" #include "statement.h" namespace Msp { @@ -276,8 +275,6 @@ public: virtual void execute(Loader &l, const Statement &st) const { typename L::Loader &ldr = dynamic_cast(l); - if(!ldr.is_pointer_reload_allowed() && ldr.get_object().*ptr0) - throw InvalidState("The pointer has already been loaded"); ldr.get_object().*ptr0 = ldr.get_collection().template get(st.args[0].get()); }