Skip to content

Commit ca2c44d

Browse files
committed
Make GenericEnvironment::addMapping private.
It's no longer used from the outside, yay!
1 parent 34506bf commit ca2c44d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/AST/GenericEnvironment.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ class alignas(1 << DeclAlignInBits) GenericEnvironment final
119119

120120
Type getOrCreateArchetypeFromInterfaceType(Type depType);
121121

122+
/// Add a mapping of a generic parameter to a specific type (which may be
123+
/// an archetype)
124+
void addMapping(GenericParamKey key, Type contextType);
125+
122126
/// Retrieve the mapping for the given generic parameter, if present.
123127
///
124128
/// This is only useful when lazily populating a generic environment.
@@ -160,10 +164,6 @@ class alignas(1 << DeclAlignInBits) GenericEnvironment final
160164
static GenericEnvironment *forOpaqueType(
161165
OpaqueTypeDecl *opaque, SubstitutionMap subs, AllocationArena arena);
162166

163-
/// Add a mapping of a generic parameter to a specific type (which may be
164-
/// an archetype)
165-
void addMapping(GenericParamKey key, Type contextType);
166-
167167
/// Make vanilla new/delete illegal.
168168
void *operator new(size_t Bytes) = delete;
169169
void operator delete(void *Data) = delete;

0 commit comments

Comments
 (0)