summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2017-10-24 10:47:23 +0200
committerChristian Persch <chpe@src.gnome.org>2017-10-24 10:47:23 +0200
commit3917ff40f7f55646c4b6861a06631413ad3d67b9 (patch)
tree1077503d5afddbee919b966a8269bf8a9be7e61a
parent18962e5dd6e8ff293c0655f3df645f24ad4060eb (diff)
downloadvte-3917ff40f7f55646c4b6861a06631413ad3d67b9.tar.gz
build: Remove unused source code
-rw-r--r--doc/reference/Makefile.am1
-rw-r--r--src/Makefile.am4
-rw-r--r--src/vtetree.cc60
-rw-r--r--src/vtetree.h50
4 files changed, 0 insertions, 115 deletions
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
index df357101..2b7fced1 100644
--- a/doc/reference/Makefile.am
+++ b/doc/reference/Makefile.am
@@ -97,7 +97,6 @@ IGNORE_HFILES = \
vtestream-file.h \
vtestream.h \
vtetc.h \
- vtetree.h \
vteunistr.h \
vteunistr.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 75079a9f..dd0bdaa1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -90,8 +90,6 @@ libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
vtestream.h \
vtestream-base.h \
vtestream-file.h \
- vtetree.cc \
- vtetree.h \
vtetypes.cc \
vtetypes.hh \
vteunistr.cc \
@@ -256,8 +254,6 @@ interpret_SOURCES = \
table.h \
vteconv.cc \
vteconv.h \
- vtetree.cc \
- vtetree.h \
interpret.c
interpret_CPPFLAGS = \
-DINTERPRET_MAIN \
diff --git a/src/vtetree.cc b/src/vtetree.cc
deleted file mode 100644
index 5bd45ac4..00000000
--- a/src/vtetree.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (C) 2004 Benjamin Otte <otte@gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-/* The interfaces in this file are subject to change at any time. */
-
-#include "vtetree.h"
-
-VteTree *
-_vte_tree_new(GCompareFunc key_compare_func)
-{
- VteTree *tree = g_slice_new0 (VteTree);
- tree->tree = g_tree_new (key_compare_func);
- return tree;
-}
-
-void
-_vte_tree_destroy(VteTree *tree)
-{
- g_tree_destroy (tree->tree);
- g_slice_free (VteTree, tree);
-}
-
-void
-_vte_tree_insert(VteTree *tree, gpointer key, gpointer value)
-{
- guint index = GPOINTER_TO_UINT (key);
-
- if (index < VTE_TREE_ARRAY_SIZE) {
- tree->array[index] = value;
- return;
- }
- g_tree_insert (tree->tree, key, value);
-}
-
-gpointer
-_vte_tree_lookup(VteTree *tree, gconstpointer key)
-{
- const guint index = GPOINTER_TO_UINT (key);
-
- if (index < VTE_TREE_ARRAY_SIZE)
- return tree->array[index];
-
- return g_tree_lookup (tree->tree, key);
-}
-
diff --git a/src/vtetree.h b/src/vtetree.h
deleted file mode 100644
index 4587fcdf..00000000
--- a/src/vtetree.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (C) 2004 Benjamin Otte <otte@gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-/* The interfaces in this file are subject to change at any time. */
-
-#ifndef vte_tree_h_included
-#define vte_tree_h_included
-
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-/* This is an optimiziation for GTrees we use with unicode characters. Since
- * most characters are in the range [0-128], we store that range in an array
- * for faster access.
- * We match the API for GTree here.
- */
-#define VTE_TREE_ARRAY_SIZE (128)
-
-typedef struct _VteTree VteTree;
-struct _VteTree {
- GTree *tree;
- gpointer array[VTE_TREE_ARRAY_SIZE];
-};
-
-VteTree *_vte_tree_new(GCompareFunc key_compare_func);
-void _vte_tree_destroy(VteTree *tree);
-void _vte_tree_insert(VteTree *tree, gpointer key, gpointer value);
-gpointer _vte_tree_lookup(VteTree *tree, gconstpointer key);
-/* extend as needed */
-
-G_END_DECLS
-
-#endif