From 328345b9c3e0adb7bc46968acba4184626572331 Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 5 Apr 2021 16:40:32 +0800 Subject: [PATCH] Removed a helper function that is no longer used. --- src/cc65/datatype.c | 14 -------------- src/cc65/datatype.h | 5 ----- 2 files changed, 19 deletions(-) diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index 901e2ce13..393177897 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -948,20 +948,6 @@ Type* Indirect (Type* T) -const Type* IndirectConst (const Type* T) -/* Do one indirection for the given type, that is, return the type where the -** given type points to. -*/ -{ - /* We are expecting a pointer expression */ - CHECK (IsClassPtr (T)); - - /* Skip the pointer or array token itself */ - return T + 1; -} - - - Type* ArrayToPtr (Type* T) /* Convert an array to a pointer to it's first element */ { diff --git a/src/cc65/datatype.h b/src/cc65/datatype.h index 77dad47ac..de4314347 100644 --- a/src/cc65/datatype.h +++ b/src/cc65/datatype.h @@ -353,11 +353,6 @@ Type* Indirect (Type* T); ** given type points to. */ -const Type* IndirectConst (const Type* T); -/* Do one indirection for the given type, that is, return the type where the -** given type points to. -*/ - Type* ArrayToPtr (Type* T); /* Convert an array to a pointer to it's first element */