summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-02-07 15:28:10 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-02-11 09:37:46 +0000
commitd796410045404436eb35cc14da6c36179d978cb5 (patch)
tree02c49c8d8978e9cad84e05b22f3efc81d6dd26bf /util
parent6104643db05607898f660bcbf84cebad440deef5 (diff)
CMake: pro2cmake.py: Remove some dead code
Change-Id: I8e3e7e4c4ef9747e0749734bdf875baccc4646bd Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 5e93a21a02..da81294e3a 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -118,21 +118,6 @@ def map_source_to_cmake(source: str, base_dir: str,
return '{}-NOTFOUND'.format(source)
-def map_source_to_fs(base_dir: str, file: str,
- source: str) -> str:
- if source is None or source == '$$NO_PCH_SOURCES':
- return ''
- if source.startswith('$$PWD/'):
- return os.path.join(os.path.dirname(file), source[6:])
- if source.startswith('$$QT_SOURCE_TREE/'):
- return os.path.join('.', source[17:])
- if source.startswith('${PROJECT_SOURCE_DIR}/'):
- return os.path.join('.', source[22:])
- if source.startswith('${CMAKE_CURRENT_SOURCE_DIR}/'):
- return os.path.join(base_dir, source[28:])
- return os.path.join(base_dir, source)
-
-
class Operation:
def __init__(self, value):
if isinstance(value, list):