From ed1684967f7bcc41a174f1c338d82833d31facdb Mon Sep 17 00:00:00 2001 From: sabrina-shanman Date: Tue, 4 Dec 2018 10:07:31 -0800 Subject: [PATCH] Remove straggler HFMSimpleFormat.cpp --- libraries/hfm/src/hfm/HFMSimpleFormat.cpp | 35 ----------------------- 1 file changed, 35 deletions(-) delete mode 100644 libraries/hfm/src/hfm/HFMSimpleFormat.cpp diff --git a/libraries/hfm/src/hfm/HFMSimpleFormat.cpp b/libraries/hfm/src/hfm/HFMSimpleFormat.cpp deleted file mode 100644 index 0388268de8..0000000000 --- a/libraries/hfm/src/hfm/HFMSimpleFormat.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// -// HFMSimpleFormat.cpp -// 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 -// - -#include "HFMSimpleFormat.h" - -namespace hfm { - template - std::shared_ptr SimpleFactory::get() { - return std::make_shared(); - } - - template - SimpleFormat::SimpleFormat(const MIMEType& mimeType) : Format(), - _mimeType(mimeType) { - } - - template - void SimpleFormat::registerFormat(FormatRegistry& registry) { - _mimeTypeID = registry.registerMIMEType(_mimeType, std::make_unique>()); - } - - template - void SimpleFormat::unregisterFormat(FormatRegistry& registry) { - registry.unregisterMIMEType(_mimeTypeID); - _mimeTypeID = hfm::FormatRegistry::INVALID_MIME_TYPE_ID; - } -};