Skip to content

Commit 0974ad9

Browse files
committed
AST: Remove some dead code from LayoutConstraint.h
1 parent b36f733 commit 0974ad9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

include/swift/AST/LayoutConstraint.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,6 @@ struct LayoutConstraintLoc {
313313

314314
bool isError() const;
315315

316-
// FIXME: We generally shouldn't need to build LayoutConstraintLoc without
317-
// a location.
318-
static LayoutConstraintLoc withoutLoc(LayoutConstraint Layout) {
319-
return LayoutConstraintLoc(Layout, SourceLoc());
320-
}
321-
322316
/// Get the representative location of this type, for diagnostic
323317
/// purposes.
324318
SourceLoc getLoc() const { return Loc; }
@@ -328,13 +322,7 @@ struct LayoutConstraintLoc {
328322
bool hasLocation() const { return Loc.isValid(); }
329323
LayoutConstraint getLayoutConstraint() const { return Layout; }
330324

331-
void setLayoutConstraint(LayoutConstraint value) {
332-
Layout = value;
333-
}
334-
335325
bool isNull() const { return Layout.isNull(); }
336-
337-
LayoutConstraintLoc clone(ASTContext &ctx) const { return *this; }
338326
};
339327

340328
/// Checks if ID is a name of a layout constraint and returns this

0 commit comments

Comments
 (0)