From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D50682035BB1D for ; Fri, 17 Nov 2017 08:05:17 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id w95so2548990wrc.2 for ; Fri, 17 Nov 2017 08:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vRyNhqyzKprfA8ce0aaw0Mtf7qTWwAZkGmqp6Lxp4ms=; b=c3fU9vrWp6hrxSQ3Am8pzRvT45WlkGAVzqE06igVPhTuka9FgNCep7fYT1SzgeEkz0 kvzQ6oLw2o0A9CDMI/WKoSU9W+tOFK4ab7pqezAWMGJX9fCu62rcMqWI5QFS0PbX/13h Z0neJ+rc51Xe/0BYHRKDX72Y+fcQnOBkb7RWo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vRyNhqyzKprfA8ce0aaw0Mtf7qTWwAZkGmqp6Lxp4ms=; b=Xsb1sBZNsBy2WMMIkBvY6gyXPvjhNZUqQY3Y1aSDAqcYd3yKF/A0myf3Eklwp0EYG7 6IkrgXNX9YTJbMUTUeaYVDxGQyclSe/r8dcdc3TNPHZ8rD1cCzsA9xOs2w8pOWVGVvth +9UlfpgmxgxUVOYJ+IJ/Kj2qm1c54dhdv6iKR1za0SnL9vNk01TenhIWGpM1jtdvahvw 5OcNVfUdoh/PNIIUSg2ue7hHXoKLd6T8BPBBs1cXehWBYu7I+KObLFmnT5prg0IvK0EG NFcQahF2dknrbQ+ZmpSqFwnBHG8CGqTYL/EKUEbjFWx83Y74NZB5M/3R+jcj7GgHso1P KbXA== X-Gm-Message-State: AJaThX7caqE1Z0EfYyArlyCs4YY28Gs2TjtHtT28uKVu2raATAIqYfT6 GyjSWNoZxa0C6vKmyf+e65NTfL39ZmA= X-Google-Smtp-Source: AGs4zMYMs4VajhK/00ZGbbVEERFtrnjbUdlt8d51C/9cSAsQYPe7oQW2/acnUH5lF/n3Rq/U6aRIgw== X-Received: by 10.223.165.67 with SMTP id j3mr5147961wrb.181.1510934967092; Fri, 17 Nov 2017 08:09:27 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id p42sm5575959wrb.28.2017.11.17.08.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 08:09:26 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Cc: leif.lindholm@linaro.org, Ard Biesheuvel Date: Fri, 17 Nov 2017 16:09:01 +0000 Message-Id: <20171117160913.17292-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171117160913.17292-1-ard.biesheuvel@linaro.org> References: <20171117160913.17292-1-ard.biesheuvel@linaro.org> Subject: [PATCH 03/15] ArmVirtPkg/PrePi: remove unused GetPlatformPpi() function X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2017 16:05:18 -0000 Remove GetPlatformPpi() from PrePi: it is not used anywhere. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/PrePi/PrePi.c | 24 -------------------- 1 file changed, 24 deletions(-) diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c index 3679087aec4d..c4fa979c43ef 100755 --- a/ArmVirtPkg/PrePi/PrePi.c +++ b/ArmVirtPkg/PrePi/PrePi.c @@ -35,30 +35,6 @@ ProcessLibraryConstructorList ( VOID ); -EFI_STATUS -GetPlatformPpi ( - IN EFI_GUID *PpiGuid, - OUT VOID **Ppi - ) -{ - UINTN PpiListSize; - UINTN PpiListCount; - EFI_PEI_PPI_DESCRIPTOR *PpiList; - UINTN Index; - - PpiListSize = 0; - ArmPlatformGetPlatformPpiList (&PpiListSize, &PpiList); - PpiListCount = PpiListSize / sizeof(EFI_PEI_PPI_DESCRIPTOR); - for (Index = 0; Index < PpiListCount; Index++, PpiList++) { - if (CompareGuid (PpiList->Guid, PpiGuid) == TRUE) { - *Ppi = PpiList->Ppi; - return EFI_SUCCESS; - } - } - - return EFI_NOT_FOUND; -} - VOID PrePiMain ( IN UINTN UefiMemoryBase, -- 2.11.0