aboutsummaryrefslogtreecommitdiffstats
path: root/libjulia/optimiser/FullInliner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libjulia/optimiser/FullInliner.cpp')
-rw-r--r--libjulia/optimiser/FullInliner.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/libjulia/optimiser/FullInliner.cpp b/libjulia/optimiser/FullInliner.cpp
index 10955e94..30c53774 100644
--- a/libjulia/optimiser/FullInliner.cpp
+++ b/libjulia/optimiser/FullInliner.cpp
@@ -252,16 +252,3 @@ string BodyCopier::translateIdentifier(string const& _name)
else
return _name;
}
-
-string NameDispenser::newName(string const& _prefix)
-{
- string name = _prefix;
- size_t suffix = 0;
- while (name.empty() || m_usedNames.count(name))
- {
- suffix++;
- name = _prefix + "_" + std::to_string(suffix);
- }
- m_usedNames.insert(name);
- return name;
-}