diff --git a/services/surfaceflinger/CompositionEngine/include/compositionengine/UdfpsExtension.h b/services/surfaceflinger/CompositionEngine/include/compositionengine/UdfpsExtension.h
index cf69da9855f810f1e8898394102d14d48d1dee06..4306cb4a02562f47cd41ec390aa56913d8a7f0f7 100644
--- a/services/surfaceflinger/CompositionEngine/include/compositionengine/UdfpsExtension.h
+++ b/services/surfaceflinger/CompositionEngine/include/compositionengine/UdfpsExtension.h
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021-2024 The LineageOS Project
+ * Copyright 2021-2022 The LineageOS Project
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,11 +20,9 @@
 #define __UDFPS_EXTENSION__H__
 
 #define UDFPS_BIOMETRIC_PROMPT_LAYER_NAME "BiometricPrompt"
-#define UDFPS_DIM_LAYER_NAME "Dim Layer for UDFPS"
 #define UDFPS_LAYER_NAME "UdfpsControllerOverlay"
 #define UDFPS_TOUCHED_LAYER_NAME "SurfaceView[UdfpsControllerOverlay](BLAST)"
 
-extern uint32_t getUdfpsDimZOrder(uint32_t z);
 extern uint32_t getUdfpsZOrder(uint32_t z, bool touched);
 extern uint64_t getUdfpsUsageBits(uint64_t usageBits, bool touched);
 
diff --git a/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp b/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
index 45f98eb8a8d42a3aa105e36dd4cc8d0ed0d33e99..408c58cc6e974457b2800e5918f291fbcd7f7f8b 100644
--- a/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
+++ b/services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
@@ -463,9 +463,6 @@ void OutputLayer::writeOutputDependentGeometryStateToHWC(HWC2::Layer* hwcLayer,
         (strncmp(getLayerFE().getDebugName(), UDFPS_BIOMETRIC_PROMPT_LAYER_NAME,
                  strlen(UDFPS_BIOMETRIC_PROMPT_LAYER_NAME)) == 0)) {
         z_udfps = getUdfpsZOrder(z, false);
-    } else if (strncmp(getLayerFE().getDebugName(), UDFPS_DIM_LAYER_NAME,
-                       strlen(UDFPS_DIM_LAYER_NAME)) == 0) {
-        z_udfps = getUdfpsDimZOrder(z);
     } else if (strncmp(getLayerFE().getDebugName(), UDFPS_TOUCHED_LAYER_NAME,
                        strlen(UDFPS_TOUCHED_LAYER_NAME)) == 0) {
         z_udfps = getUdfpsZOrder(z, true);
diff --git a/services/surfaceflinger/CompositionEngine/src/UdfpsExtension.cpp b/services/surfaceflinger/CompositionEngine/src/UdfpsExtension.cpp
index 5ae381597d243f684d6d30b390897b134ef412f1..2d9d086dd238992d87b40538ec70488765bae316 100644
--- a/services/surfaceflinger/CompositionEngine/src/UdfpsExtension.cpp
+++ b/services/surfaceflinger/CompositionEngine/src/UdfpsExtension.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2024 The LineageOS Project
+ * Copyright 2020 The LineageOS Project
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,10 +17,6 @@
 #ifndef TARGET_PROVIDES_UDFPS_LIB
 #include <compositionengine/UdfpsExtension.h>
 
-uint32_t getUdfpsDimZOrder(uint32_t z) {
-    return z;
-}
-
 uint32_t getUdfpsZOrder(uint32_t z, __unused bool touched) {
     return z;
 }