Rename LeapFrog to Leapfrog
[junction.git] / junction / extra / impl / MapAdapter_LeapFrog.h
diff --git a/junction/extra/impl/MapAdapter_LeapFrog.h b/junction/extra/impl/MapAdapter_LeapFrog.h
deleted file mode 100644 (file)
index c277044..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*------------------------------------------------------------------------
-  Junction: Concurrent data structures in C++
-  Copyright (c) 2016 Jeff Preshing
-
-  Distributed under the Simplified BSD License.
-  Original location: https://github.com/preshing/junction
-
-  This software is distributed WITHOUT ANY WARRANTY; without even the
-  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-  See the LICENSE file for more information.
-------------------------------------------------------------------------*/
-
-#ifndef JUNCTION_EXTRA_IMPL_MAPADAPTER_LEAPFROG_H
-#define JUNCTION_EXTRA_IMPL_MAPADAPTER_LEAPFROG_H
-
-#include <junction/Core.h>
-#include <junction/QSBR.h>
-#include <junction/ConcurrentMap_LeapFrog.h>
-#include <turf/Util.h>
-
-namespace junction {
-namespace extra {
-
-class MapAdapter {
-public:
-    static TURF_CONSTEXPR const char* MapName = "Junction LeapFrog map";
-
-    MapAdapter(ureg) {
-    }
-
-    class ThreadContext {
-    private:
-        QSBR::Context m_qsbrContext;
-
-    public:
-        ThreadContext(MapAdapter&, ureg) {
-        }
-
-        void registerThread() {
-            m_qsbrContext = DefaultQSBR.createContext();
-        }
-
-        void unregisterThread() {
-            DefaultQSBR.destroyContext(m_qsbrContext);
-        }
-
-        void update() {
-            DefaultQSBR.update(m_qsbrContext);
-        }
-    };
-
-    typedef ConcurrentMap_LeapFrog<u32, void*> Map;
-
-    static ureg getInitialCapacity(ureg maxPopulation) {
-        return turf::util::roundUpPowerOf2(maxPopulation / 4);
-    }
-};
-
-} // namespace extra
-} // namespace junction
-
-#endif // JUNCTION_EXTRA_IMPL_MAPADAPTER_LEAPFROG_H