]> git.tdb.fi Git - libs/datafile.git/commitdiff
Remove redundant template parameter from Collection::Loader::item
authorMikko Rasa <tdb@tdb.fi>
Wed, 7 Aug 2024 17:01:35 +0000 (20:01 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 7 Aug 2024 17:01:35 +0000 (20:01 +0300)
It's been unnecessary since a727216.

source/collection.h

index ae6ec308b6b6c7dd4ebe88ab7a18c25078b0efc3..e780603da7cf227e192cfda2200b2b78d8bc07ae 100644 (file)
@@ -70,7 +70,7 @@ public:
                Loader(Collection &);
                Collection &get_object() const { return coll; }
        private:
-               template<typename T, typename S>
+               template<typename T>
                void item(const std::string &n) { make_sub<T>().into(coll, n).load(); }
        };
 
@@ -474,7 +474,7 @@ class LoadableCollectionItemType: public CollectionItemType<T>
 {
 public:
        void add_to_loader(Collection::Loader &loader) const override
-       { loader.add(this->kwd, &Collection::Loader::item<T, T>); }
+       { loader.add(this->kwd, &Collection::Loader::item<T>); }
 
        void load_item(Collection &coll, Parser &parser, const std::string &name) const override
        {