From e203e212d04e74714316a86be34a1813cf426568 Mon Sep 17 00:00:00 2001
From: Matt Wala <wala1@illinois.edu>
Date: Sun, 16 Jul 2017 14:43:37 -0500
Subject: [PATCH] Remove tuple.py

---
 loopy/library/function.py | 12 +++++++++++-
 loopy/library/tuple.py    | 38 --------------------------------------
 2 files changed, 11 insertions(+), 39 deletions(-)
 delete mode 100644 loopy/library/tuple.py

diff --git a/loopy/library/function.py b/loopy/library/function.py
index f3d14516c..9d557ac9f 100644
--- a/loopy/library/function.py
+++ b/loopy/library/function.py
@@ -25,7 +25,6 @@ THE SOFTWARE.
 
 def default_function_mangler(kernel, name, arg_dtypes):
     from loopy.library.reduction import reduction_function_mangler
-    from loopy.library.tuple import tuple_function_mangler
 
     manglers = [reduction_function_mangler, tuple_function_mangler]
     for mangler in manglers:
@@ -46,4 +45,15 @@ def single_arg_function_mangler(kernel, name, arg_dtypes):
     return None
 
 
+def tuple_function_mangler(kernel, name, arg_dtypes):
+    if name == "make_tuple":
+        from loopy.kernel.data import CallMangleInfo
+        return CallMangleInfo(
+                target_name="loopy_make_tuple",
+                result_dtypes=arg_dtypes,
+                arg_dtypes=arg_dtypes)
+
+    return None
+
+
 # vim: foldmethod=marker
diff --git a/loopy/library/tuple.py b/loopy/library/tuple.py
deleted file mode 100644
index ce2865ff5..000000000
--- a/loopy/library/tuple.py
+++ /dev/null
@@ -1,38 +0,0 @@
-from __future__ import absolute_import, division, print_function
-
-__copyright__ = "Copyright (C) 2017 Matt Wala"
-
-__license__ = """
-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 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.
-"""
-
-from loopy.diagnostic import LoopyError
-
-
-def tuple_function_mangler(kernel, name, arg_dtypes):
-    if name == "make_tuple":
-        from loopy.kernel.data import CallMangleInfo
-        return CallMangleInfo(
-                target_name="loopy_make_tuple",
-                result_dtypes=arg_dtypes,
-                arg_dtypes=arg_dtypes)
-
-    return None
-
-# vim: fdm=marker
-- 
GitLab