summaryrefslogtreecommitdiffstats
path: root/src/util/string_to_uint_map.cpp
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-08-26 02:37:11 +0100
committerEmil Velikov <[email protected]>2017-08-29 13:40:44 +0100
commit0ac78dc92582a59d4319ebce019b4caa41fb432d (patch)
tree63fd4ff2e5a3b9f8d86a8474352e37cf9eca874f /src/util/string_to_uint_map.cpp
parent79674066b6f98be96cb63a0332ac421858544a20 (diff)
util: move string_to_uint_map to glsl
The functionality is used by glsl and mesa. With the latter already depending on the former. With this in place the src/util/ static library libmesautil.la no longer has a C++ dependency. Thus objects which use it (like libEGL) don't need the C++ link. Cc: "17.2" <[email protected]> Fixes: 02cc35937277 ("egl/wayland: Use linux-dmabuf interface for buffers") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101851 Signed-off-by: Emil Velikov <[email protected]> Suggested-by: Jason Ekstrand <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Tested-by: Mike Lothian <[email protected]> Tested-by: James Harvey <[email protected]>
Diffstat (limited to 'src/util/string_to_uint_map.cpp')
-rw-r--r--src/util/string_to_uint_map.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/util/string_to_uint_map.cpp b/src/util/string_to_uint_map.cpp
deleted file mode 100644
index 35fb76bf78d..00000000000
--- a/src/util/string_to_uint_map.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright © 2011 Intel Corporation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-
-/**
- * \file string_to_uint_map.cpp
- * \brief Dumb wrapprs so that C code can create and destroy maps.
- *
- * \author Ian Romanick <[email protected]>
- */
-#include "string_to_uint_map.h"
-
-extern "C" struct string_to_uint_map *
-string_to_uint_map_ctor()
-{
- return new string_to_uint_map;
-}
-
-extern "C" void
-string_to_uint_map_dtor(struct string_to_uint_map *map)
-{
- delete map;
-}