From 0fb20f8f1bcd088d37a4a8cef60e26d8ee402bf4 Mon Sep 17 00:00:00 2001
From: Clayton Smith <argilo@gmail.com>
Date: Thu, 29 Oct 2020 19:04:51 -0400
Subject: Remove hexint and hexshort from gru module

---
 .../python/gnuradio/gru/CMakeLists.txt             |  1 -
 gnuradio-runtime/python/gnuradio/gru/__init__.py   |  1 -
 gnuradio-runtime/python/gnuradio/gru/hexint.py     | 32 ----------------------
 3 files changed, 34 deletions(-)
 delete mode 100644 gnuradio-runtime/python/gnuradio/gru/hexint.py

(limited to 'gnuradio-runtime/python')

diff --git a/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt b/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt
index d7d05ec86a..fa3baa5221 100644
--- a/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt
+++ b/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt
@@ -11,7 +11,6 @@ GR_PYTHON_INSTALL(FILES
     __init__.py
     freqz.py
     gnuplot_freqz.py
-    hexint.py
     msgq_runner.py
     daemon.py
     DESTINATION ${GR_PYTHON_DIR}/gnuradio/gru
diff --git a/gnuradio-runtime/python/gnuradio/gru/__init__.py b/gnuradio-runtime/python/gnuradio/gru/__init__.py
index 5f20c17aa1..c78c80960a 100644
--- a/gnuradio-runtime/python/gnuradio/gru/__init__.py
+++ b/gnuradio-runtime/python/gnuradio/gru/__init__.py
@@ -4,5 +4,4 @@
 from .daemon import *
 from .freqz import *
 from .gnuplot_freqz import *
-from .hexint import *
 from .msgq_runner import *
diff --git a/gnuradio-runtime/python/gnuradio/gru/hexint.py b/gnuradio-runtime/python/gnuradio/gru/hexint.py
deleted file mode 100644
index ad568b59a6..0000000000
--- a/gnuradio-runtime/python/gnuradio/gru/hexint.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Copyright 2005 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-#
-
-def hexint(mask):
-  """
-  Convert unsigned masks into signed ints.
-
-  This allows us to use hex constants like 0xf0f0f0f2 when talking to
-  our hardware and not get screwed by them getting treated as python
-  longs.
-  """
-  if mask >= 2**31:
-     return int(mask-2**32)
-  return mask
-
-def hexshort(mask):
-  """
-  Convert unsigned masks into signed shorts.
-
-  This allows us to use hex constants like 0x8000 when talking to
-  our hardware and not get screwed by them getting treated as python
-  longs.
-  """
-  if mask >= 2**15:
-    return int(mask-2**16)
-  return mask
-- 
cgit v1.2.3