]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loaderaction.h
Remove pointer reload prevention feature; the purpose it was added for is now gone
[libs/datafile.git] / source / loaderaction.h
index 03a9da7bcc1aa8fc33823f404a0426f704aaeaed..a6eb552e981e38f329ab626c34d2cae9c7afc504 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2008, 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_DATAFILE_LOADERACTION_H_
 #define MSP_DATAFILE_LOADERACTION_H_
 
@@ -283,8 +276,6 @@ public:
        virtual void execute(Loader &l, const Statement &st) const
        {
                typename L::Loader &ldr = dynamic_cast<typename L::Loader &>(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<T0>(st.args[0].get<std::string>());
        }