diff --git a/libraries/hfm/src/hfm/HFMSimpleFormat.h b/libraries/hfm/src/hfm/HFMSimpleFormat.h deleted file mode 100644 index 0ab6636e7d..0000000000 --- a/libraries/hfm/src/hfm/HFMSimpleFormat.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// HFMSimpleFormat.h -// libraries/hfm/src/hfm -// -// Created by Sabrina Shanman on 2018/11/30. -// Copyright 2018 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// - -#ifndef hifi_HFMSimpleFormat_h -#define hifi_HFMSimpleFormat_h - -#include "HFMFormat.h" -#include "HFMSerializer.h" - -namespace hfm { - template - class SimpleFactory : public Serializer::Factory { - std::shared_ptr get() override { - return std::make_shared(); - } - }; - - template // T is an implementation of hfm::Serializer - class SimpleFormat : public Format { - public: - SimpleFormat(const MediaType& mediaType) : Format(), - _mediaType(mediaType) { - } - - void registerFormat(FormatRegistry& registry) override { - _mediaTypeID = registry.registerMediaType(_mediaType, std::make_unique>()); - } - - void unregisterFormat(FormatRegistry& registry) override { - registry.unregisterMediaType(_mediaTypeID); - _mediaTypeID = hfm::FormatRegistry::INVALID_MEDIA_TYPE_ID; - } - protected: - MediaType _mediaType; - hfm::FormatRegistry::MediaTypeID _mediaTypeID; - }; -}; - -#endif // hifi_HFMSimpleFormat_h