From fdda964ac24cd4e356623b3baaf2304820183767 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 24 Dec 2016 01:45:59 -0600 Subject: [PATCH] Remove memops from common package --- src/common/CMakeLists.txt | 2 -- src/common/memops.cpp | 29 ----------------------------- src/common/memops.hpp | 21 --------------------- 3 files changed, 52 deletions(-) delete mode 100644 src/common/memops.cpp delete mode 100644 src/common/memops.hpp diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index acca1571..8e736653 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 2.8.8) add_library( NostalgiaCommon OBJECT bounds.cpp - memops.cpp point.cpp ) @@ -12,7 +11,6 @@ install( FILES bounds.hpp common.hpp - memops.hpp point.hpp DESTINATION include/wombat/common diff --git a/src/common/memops.cpp b/src/common/memops.cpp deleted file mode 100644 index 515c3171..00000000 --- a/src/common/memops.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2016 gtalent2@gmail.com - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -#include "memops.hpp" - -namespace nostalgia { -namespace common { - -void memcpy(void *src, void *dest, int size) { - char *srcBuf = (char*) src; - char *dstBuf = (char*) dest; - for (int i = 0; i < size; i++) { - dstBuf[i] = (char) srcBuf[i]; - } -} - -void memset(void *ptr, char val, int size) { - char *buf = (char*) ptr; - for (int i = 0; i < size; i++) { - buf[i] = val; - } -} - -} -} diff --git a/src/common/memops.hpp b/src/common/memops.hpp deleted file mode 100644 index 7325156c..00000000 --- a/src/common/memops.hpp +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2016 gtalent2@gmail.com - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -#ifndef NOSTALGIA_COMMON_MEMOPS_HPP -#define NOSTALGIA_COMMON_MEMOPS_HPP - -namespace nostalgia { -namespace common { - -void memcpy(void *src, void *dest, int size); - -void memset(void *ptr, char val, int size); - -} -} - -#endif